bitovi / testee-client

Testee client adapters for QUnit, Jasmine and Mocha
https://www.npmjs.com/package/testee-client
MIT License
1 stars 1 forks source link

fix before/after all hooks not finding tests that aren't direct children of parent #46

Closed bmomberger-bitovi closed 6 years ago

bmomberger-bitovi commented 6 years ago

As a refinement of #45 -- I just realized that failures on the before all / after all hooks might not find a test to glom onto if there wasn't a test that was a direct sibling. This fix uses eachTest() to always find a suitable test to fail when one of these hooks fails, as long as one exists in the suite.