QUnit 2.24.0 Released: Cleaner traces and new CLI file extensions
FYI:
- ✨ There is a new QUnit Blog. We’re also on Mastodon and Bluesky.
- 📗 There are new Guides, Support, and Chat sections.
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 like
test/*.{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
ortest/**/*.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