QUnit 2.17.0 Released: Rerun failed tests
New shortcut to “Rerun all failed tests”, improve diagnostics, and fix a memory leak.
Thanks to all contributors to this release, including Ben Demboski, Jan Buschtöns, Chris Krycho, and Steve McClure!
Changelog
Added
- HTML Reporter: Add “Rerun failed tests” link to the HTML Reporter. (Jan Buschtöns) #1626
- Core: New
error
event for bailing on uncaught errors. (Timo Tijhof) #1638
Changed
- Core: Improve warning for incorrect hook usage to include module name. (Chris Krycho) #1647
Deprecated
-
Core: The internal
QUnit.onError
andQUnit.onUnhandledRejection
callbacks are deprecated. #1638These were undocumented, but may have been used in a fork or other custom runner for QUnit. Switch to the supported
QUnit.onUncaughtException
instead.
Fixed
- Assert: Improve validation handling of
assert.throws()
andassert.rejects()
. (Steve McClure) #1637 - Core: Ensure skipped child module hooks don’t leak memory. (Ben Demboski) #1650
- Core: Fix bad module nesting when module closure throws global error. #1478
- Core: Fix reporting of uncaught errors during
QUnit.begin()
. (Timo Tijhof) #1446 - Core: Fix reporting of uncaught errors during or after
QUnit.done()
. (Timo Tijhof) #1629