Releases: qunitjs/qunit
Releases · qunitjs/qunit
2.18.2
2.18.1
Fixed
- HTML Reporter: Fix source attribution for test definitions. (Thanks @phanirithvij!) #1679
- Core: Fix preconfig support in SpiderMonkey and other environments. 0befe2aafe
- Core: Improve performance of async pauses with native Map when available. aa7314b431
2.18.0
Added
- Assert: New
assert.propContains()
for partial object comparison. (@izelnakri) #1668 - Core: Add
QUnit.hooks
to globally add beforeEach and afterEach. (@Krinkle) #1475 - CLI: Add support for watching
.ts
files when TypeScript is used. #1669 - CLI: Add support for watching
.json
,.cjs
, and.mjs
files. #1676
Fixed
2.17.2
Changed
- CLI: Reduce npm install size by 35 kB. (@Krinkle) node-watch#115
Fixed
- Core: Correctly ignore late tests after a nested
QUnit.module.only()
closure. (Steve McClure @smcclure15) #1645 - Core: Restore fake test for "No tests were run" message. #1652
- HTML Reporter: Restore URL parameter reading. #1657
2.17.1
2.17.0
Added
- HTML Reporter: Add "Rerun failed tests" link. (Jan Buschtöns @buschtoens) #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 @chriskrycho) #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 supportedQUnit.onUncaughtException
instead.
Fixed
- Assert: Improve validation handling of
assert.throws()
andassert.rejects()
. (Steve McClure @smcclure15) #1637 - Core: Ensure skipped child module hooks don't leak memory. (Ben Demboski @bendemboski) #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
2.16.0
Added
-
Core: New
QUnit.test.each()
method for data providers. (@ventuno) #1568 -
Core: New
failOnZeroTests
configuration option. (Brenden Palmer @brendenpalmer) -
Core: New
QUnit.reporters
interface. (Timo Tijhof) f8948c9 js-reporters#133This introduces support for using the
tap
reporter in a browser.
This was previously limited to the CLI.
Changed
- Assert: Indicate which test a drooling
assert.async()
callback came from. (Steve McClure @smcclure15) #1599
Deprecated
Fixed
2.15.0
Changed
- HTML Reporter: Trim whitespace of the filter input. (Nathaniel Furniss) #1573
- CLI: Upgrade
js-reporters
to 2.0.0. #1577
Deprecated
- Core: Warn when setting hooks for a different module. (Ray Cohen) #1586
Fixed
- Assert: Fix
assert.throws()
to fail gracefully when expected class does not match. (Steve McClure) #1530 - CLI: Fix TAP output to support cyclical objects. (Zachary Mulgrew) #1555, js-reporters#104
- CLI: Fix TAP output for the
Infinity
value, previously becamenull
. (Timo Tijhof) #1406 - CLI: Fix TAP output going silent if
console
object is mocked. (Timo Tijhof) #1340