Releases: qunitjs/qunit
2.24.0
FYI:
- ✨ There is a new QUnit Blog on qunitjs.com. We're also on Mastodon and Bluesky.
- 📗 There are new Guides, Support, and Chat sections on qunitjs.com.
Including best practices and examples for async tests, callbacks, and event-based code.
Added
-
CLI: Add
.mjs
and.cjs
to the default file extensions when reading a test directory.These have been monitored by watch mode since QUnit 2.18, but were not loaded or executed
unless you passed them as individual files, or used your own glob liketest/*.{js,mjs,cjs}
.If you currently pass a directory to the QUnit CLI and have matching
.mjs
or.cjs
files that should not be executed, you can opt-out by passingtest/*.js
or
test/**/*.js
explicitly instead oftest/
. -
CLI: Add stacktrace cleaning by omitting or greying out internal QUnit and Node.js frames in TAP reporter. #1795. #1789
Learn more about Cleaner stack traces on the QUnit Blog.
-
Core: Add
QUnit.config.reporters.tap
for enabling TAP via preconfig. #1711 -
Core: Add memory to the
runEnd
event to allow late listeners. This helps browser integrations that only relay a summary. 27a33d1593
Fixed
- HTML Reporter: Fix unexpected pointer cursor on "Source:" label. f8cce2bb06
- HTML Reporter: Faster "Hide passed" toggling on large test suites. b13ade0fd7
2.23.1
Fixed
- CLI: Fix support for strict TAP parsers by limiting colors to test names. #1801
- CLI: Fix confusing
--seed
option eating the file argument. #1691 - CLI: Remove confusing
expected: undefined
under error messages in TAP reporter. #1794 - HTML Reporter: Fix broken "Rerun without max depth" link. da0c59e101 (see also 91db92dbc5, 73c03cf277)
- HTML Reporter: Fix
<label>
to wrap<select>
for multi-value urlConfig item. #1773
2.23.0
Added
- Core: Add automatic labels in
QUnit.test.each()
to simple array values. (@vtintillier, @Krinkle) #1733
2.22.0
Added
- Core: Add
QUnit.test.if()
andQUnit.module.if()
. (@englercj, @Krinkle, @smcclure15) #1772
2.21.1
Deprecated
- Assert: Add notice about upcoming change in how
assert.expect()
counts steps forassert.verifySteps()
. (@getify, @Krinkle) #1226
Fixed
2.21.0
Added
- Assert: Add
assert.closeTo()
. (@JamesMGreene, @Krinkle) #1735 - Core: Add support for flat preconfig via environment/global variables. (@Krinkle)
Deprecated
- Core: Deprecate
QUnit.load()
and document migration path at https://qunitjs.com/api/QUnit/load/. #1743 - Core: Deprecate unset testTimeout for tests taking longer than 3 seconds. #1483
2.20.1
2.20.0
Added
Changed
- Assert: Add type check for
assert.async()
parameter. (@zixinyin) #1721 - HTML Reporter: Remove units for 0 values in qunit.css. (@hareesh-pillai) #1715
Fixed
- Core: Faster
inArray
by using Array.prototype.includes when possible. (@izelnakri)
2.19.4
Fixed
- Core: Fix memory leak via
config.timeoutHandler
from last async test. (Sergey Astapov @SergeAstapov) - Docs: Fix several typos. (@AndrewDawes, @timgates42)