I have to exec some code before all tests began. So I need to use QUnit hook before
but in ember-qunit
the only callbacks available are beforeEach
and afterEach
.
How can I perform that?
When I wrote my first comment on this quesion, the repository were like this: qunit-module.js. So it seems there were no support for before
and after
hooks. So my suggestion was initiating the manager before module
function, shown as in this twiddle.
But, 5 days ago, trentmwillis submitted a commit and it seem master now a has the before
and after
hooks. I guess ember-qunit's 2.1.2 version has this commit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With