Releases: qunitjs/qunit
Releases · qunitjs/qunit
2.19.3
2.19.2
Changed
- Core: Faster diffing for
config.noglobals
by refactoring slow mutations. (@izelnakri) #1697 - Assert: Improve performance of
QUnit.equiv()
. (@izelnakri) #1700 - Assert: Faster deepEqual for Map values by avoiding typeEquiv calls. (@Krinkle)
- Assert: Faster deepEqual by reducing internal objectType checks. (@Krinkle)
- Assert: Faster deepEqual by using re-assignment for internal pairs. (@Krinkle)
Fixed
2.19.1
Fixed
- HTML Reporter: Restore float-clear for narrow viewports. 87c90ce2e0
2.19.0
Added
- CLI: Add
--module
option. (@ShaMan123) #1680 - Core: Add
moduleId
toQUnit.begin()
details object.
Changed
- HTML Reporter: Improve accessibility, design, and fuzziness of the module filter. (@Krinkle) #1664, #1685
Fixed
- Core: Fix event "runtime" data to be rounded to milliseconds.
- Core: Fix pretty stacktrace shortening to work on Windows.
- HTML Reporter: Faster toolbar setup by re-using
beginDetails
.
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