-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
consider deprecating callbacks #14
Comments
@cowboyd - As long as the context of |
Hmm, it seems that the https://github.com/switchfly/ember-mocha/blob/master/lib/ember-mocha/mocha-module.js#L21-L37 is where the callbacks are setup, and it does not seem that we are overriding these to set the proper context. |
It does as of #6, I'll open an issue on ember-cli-mocha and see if I can get around to it at some point. |
@cowboyd - Awesome, I did not see that. I think we should have some tests for #6 to ensure it works properly (I reviewed the tests to see if it were supported). For example I added some tests confirming context in emberjs/ember-test-helpers#12, maybe they could be used to ensure #6 does not have regressions... |
@cowboyd I think this can be considered solved, right? I'll close this, but feel free to reopen if I'm wrong! |
@Turbo87 Yes, I believe it is solved, and the blueprints have been updated for some time. Thanks! |
describeModule
and friends accept a list of callbacks. E.g.After using ember mocha for a while, I feel that using the callbacks mechanism is unnecessary and a result of limitations in qUnit leaking through the shared interface. The reason is because, unlike qUnit, mocha has a generalized setup and teardown api in the form of
before{All,Each}
andafter{All,Each}
hooks, I have yet to encounter a situation where they have not sufficed.While they could remain optional via, they feel counter to the mocha way and so should not occupy such a prime portion of API real-estate. At the very least, I think that the ember cli blueprints should generate idiomatic mocha code that does setup and teardown inside before and after hooks.
The text was updated successfully, but these errors were encountered: