Skip to content

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

Merged
rwjblue merged 1 commit into
emberjs:masterfrom
simonihmig:initializer-blueprint-mocha
Mar 8, 2019
Merged

rwjblue merged 1 commit into
emberjs:masterfrom
simonihmig:initializer-blueprint-mocha

Conversation

@simonihmig

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@ppcano ppcano mentioned this pull request Feb 26, 2019
4 tasks done
@simonihmig
simonihmig force-pushed the initializer-blueprint-mocha branch from 9376b05 to 430aed2 Compare March 6, 2019 18:48
simonihmig added a commit to simonihmig/ember.js that referenced this pull request Mar 6, 2019
@rwjblue

rwjblue commented Mar 7, 2019

Copy link
Copy Markdown
Member

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
@simonihmig
simonihmig force-pushed the initializer-blueprint-mocha branch from 430aed2 to 84700f6 Compare March 7, 2019 11:54
@rwjblue
rwjblue merged commit a03f18a into emberjs:master Mar 8, 2019
@rwjblue

rwjblue commented Mar 8, 2019

Copy link
Copy Markdown
Member

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