mocha
12.0.3 · 1 Oct 2026MIT14.6M / weekRepositoryHomepagenpmAtom feed
Upgrading mocha From 8.1.3 to 8.4.0
6 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
CLI file parsing errors now have error codes (@evaline-ju)
- New
Add
options.requireto Mocha constructor forroot hookplugins on parallel runs (@juergba) - Fixed
Watch: Fix crash when reloading files (@outsideris)
- New
- New
Add build to GH actions run (@christian-bromann)
- Fixed
Fix regression in
requireinterface (@alexander-fenster)
- New
- New
Add error code for test timeout errors (@boneskull)
- New
Add BigInt support to stringify util function (@JosejeSinohui)
- New
Add file location when SyntaxError happens in ESM (@giltayar)
- New
Add support for typescript-style docstrings (@boneskull)
- New
Add GH Actions workflow status badge (@outsideris)
- New
Add example of generating tests dynamically with a closure (@maxwellgerber)
- Fixed
Fix
requireerror when bundling Mocha with Webpack (@devhazem)
- New
- Fixed
Fix problematic handling of otherwise-unhandled
Promiserejections and erroneous "done()called twice" errors (@boneskull) - Fixed
Avoid
MaxListenersExceededWarningin watch mode (@boneskull)
- Fixed
- New
Support run-once global setup & teardown fixtures (@boneskull)
- New
Multi-part extensions (e.g.,
test.js) now usable with--extensionoption (@jordanstephens) - New
Leading dots (e.g.,
.js,.test.js) now usable with--extensionoption (@boneskull) - New
Output of
jsonreporter now containsspeed("fast"/"medium"/"slow") property (@wwhurin)
- New
5 other lines we could not sort, mostly version bumps
- 8.4.0
Dynamically generating tests with
top-level awaitand ESM test files (@juergba) - 8.4.0
Update default file extensions (@outsideris)
- 8.3.2
Filter active sponsors/backers (@juergba)
- 8.3.2
Update config file examples (@pkuczynski)
- 8.3.0
Upgrade all dependencies to latest stable (@AviVahl)
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.