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

[Feature] Update initializer blueprint for ember-mocha 0.14 #17411

Merged
merged 1 commit into from
Mar 8, 2019

Conversation

simonihmig
Copy link
Contributor

Related to #16863

<% if (destroyAppExists) { %>import destroyApp from '../../helpers/destroy-app';<% } else { %>import { run } from '@ember/runloop';<% } %>

describe('<%= friendlyTestName %>', function() {
let hooks = setupTest();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this? we don't seem to be using anything from the test context 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, looks like the QUnit variant is doing the same thing. @rwjblue do you remember why we use it there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I made it do the same as the QUnit one for now, but also wondered about this. See my note here: #17412

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rwjblue do you? 👉 #17411 (comment)
Would love to finish this and #17412, to update the TS blueprints as well! 😉

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, seems like we can/should remove from both mocha and qunit. Sorry for the delay here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed setupTest()! Ready for final review.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here for QUnit again: #17713

simonihmig added a commit to simonihmig/ember.js that referenced this pull request Mar 6, 2019
@rwjblue
Copy link
Member

rwjblue commented Mar 7, 2019

Hmm, looks like the blueprint tests are failing still.

simonihmig added a commit to simonihmig/ember.js that referenced this pull request Mar 7, 2019
@rwjblue rwjblue merged commit a03f18a into emberjs:master Mar 8, 2019
@rwjblue
Copy link
Member

rwjblue commented Mar 8, 2019

Thank you @simonihmig!

simonihmig added a commit to simonihmig/ember.js that referenced this pull request Mar 13, 2019
The previous PR emberjs#17411 and its last-minute change to remove `setupTest()` introduced a very stupid error! 🤦‍♂️
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants