-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update mirage logging option to work with qunit5 #2093
Conversation
What next to get this merged in? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, forgot about it 😱
@cah-briangantzler I just tried this out on an app that is still using ember-qunit v4 and the checkbox is unfortunately not visible anymore. can you check if we can make this work again too? |
I updated my application to use ember-cli-mirage 2.0.0, it is still using ember-qunit ^4.6.0 and the checkbox is visible for me. I am unable to update my application to qunit v5 as I use ember-cli-page-object and that is NOT ember-qunit 5 compatible at this time. I did temporarily update (but did not commit) the ember-cli-mirage tests to ember-qunit 5 and the checkbox was visible and working. |
@Turbo87 Were you able to get this to work? There is a nuance I mentioned earlier, previously just including the addon added the check box to the qunit testing, even if you never imported setupMirage (and presumably created a mirage server). Where I moved it to requires you to at least import something (mostly likely setupMirage) from 'ember-cli-mirage'. That was not on purpose, it is a by product of where I moved it, but kinda makes sense, if you never import and create a server, having the checkbox does not really do anything. Are you creating the mirage server on your own without importing setupMirage? |
I think I found the issue. We were importing import setupMirage from 'ember-cli-mirage/test-support/setup-mirage'; but since the import { setupMirage } from 'ember-cli-mirage/test-support'; and now it works... 😅 |
Great to hear |
This seems to not work when using the Any chance to make it work via the autostart option or would you recommend using the |
Fixes #2091
There were no tests for the original adding of the option, I dont see how to add tests as it not a test of the addon but how the addon works with Qunit.