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