You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I first noticed this and reported it upstream with ember-mocha (emberjs/ember-mocha#129), but I think it's actually an issue with a change made to test-module-for-component.
This issue doesn't show with current ember-qunit and ember-test-helpers
@blimmer the issue with calling super() later is that you have no access to this before the super() call happened and that's also the reason why I had to move the call.
I first noticed this and reported it upstream with ember-mocha (emberjs/ember-mocha#129), but I think it's actually an issue with a change made to test-module-for-component.
This issue doesn't show with current ember-qunit and ember-test-helpers
but between 0.5.34 and 0.6.x, a call to
super
was added before checking the options passed:ember-test-helpers/lib/ember-test-helpers/test-module-for-component.js
Line 29 in d5c50d0
This call mutates the options hash and deletes the
needs
key:ember-test-helpers/lib/ember-test-helpers/test-module.js
Line 50 in d5c50d0
Which then causes the deprecation to fire:
ember-test-helpers/lib/ember-test-helpers/test-module-for-component.js
Lines 38 to 45 in d5c50d0
I have a proof of concept exposing this error here:
https://github.com/blimmer/ember-cli-example-app-for-github/compare/ember-mocha/issue-129
I'm not sure what the right fix is, maybe moving the call to super below the checks?
The text was updated successfully, but these errors were encountered: