-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Clarified migration guide to v5.x when a project includes QUnit DOM #787
Clarified migration guide to v5.x when a project includes QUnit DOM #787
Conversation
|
||
```sh | ||
# npm users | ||
npm install --save-dev qunit "@ember/test-helpers@^2.0.0-beta.4" | ||
npm install --save-dev qunit "@ember/test-helpers" |
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.
The changes in this section are somewhat outside of PR scope (documenting what to do for QUnit DOM).
I didn't think it'd be good to show installing the beta version when stable is now available. I can revert this change, or address it differently if needed.
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.
This is great, thank you!
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.
Thank you!
|
||
```sh | ||
# npm users | ||
npm install --save-dev qunit "@ember/test-helpers@^2.0.0-beta.4" | ||
npm install --save-dev qunit "@ember/test-helpers" |
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.
This is great, thank you!
Description
I tried upgrading
ember-qunit
tov5.1
in a production app today. I followed the migration guide by installingqunit
and@ember/test-helpers
and updatingtests/index.html
.When I ran tests afterwards with
ember t -s
, I encountered the error messageassert.dom is not a function
in all tests that relied on QUnit DOM assertions. From the migration guide, I didn't realize there were extra step(s) for QUnit DOM.I updated the migration guide by copy-pasting the code snippet from QUnit DOM's migration guide, then linking to the page in case there may be additional content in the future.