Skip to content
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

Merged
merged 2 commits into from
Dec 8, 2020
Merged

Clarified migration guide to v5.x when a project includes QUnit DOM #787

merged 2 commits into from
Dec 8, 2020

Conversation

ijlee2
Copy link
Member

@ijlee2 ijlee2 commented Dec 7, 2020

Description

I tried upgrading ember-qunit to v5.1 in a production app today. I followed the migration guide by installing qunit and @ember/test-helpers and updating tests/index.html.

When I ran tests afterwards with ember t -s, I encountered the error message assert.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.

@ijlee2 ijlee2 marked this pull request as draft December 7, 2020 16:59

```sh
# npm users
npm install --save-dev qunit "@ember/test-helpers@^2.0.0-beta.4"
npm install --save-dev qunit "@ember/test-helpers"
Copy link
Member Author

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.

Copy link
Member

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!

@ijlee2 ijlee2 marked this pull request as ready for review December 7, 2020 17:01
Copy link
Member

@rwjblue rwjblue left a 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"
Copy link
Member

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!

@rwjblue rwjblue merged commit d15a4ab into emberjs:master Dec 8, 2020
@ijlee2 ijlee2 deleted the clarify-migration-guide-to-v5.x branch December 8, 2020 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants