mocha
12.0.3 · 1 Oct 2026MIT14.6M / weekRepositoryHomepagenpmAtom feed
Upgrading mocha From 8.0.1 to 8.4.0
10 releases in betweenevery note read
Reading releases, release notes and advisories…
Security
- 8.1.2
Update many dependencies (@GChuf)
- 8.1.0
#4378, #4333: Update javascript-serialize (@martinoppitz, @wnghdcjfe)
- 8.1.0
Update yargs-unparser (@martinoppitz)
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
- Fixed
Restore
Mocha.utils.lookupFiles()and Webpack compatibility (both broken since v8.1.0);Mocha.utils.lookupFiles()is now deprecated and will be removed in the next major revision of Mocha; userequire('mocha/lib/cli').lookupFilesinstead (@boneskull)
- Fixed
- Security
Update many dependencies (@GChuf)
- Fixed
Fix command-line flag incompatibility in forthcoming Node.js v14.9.0 (@boneskull)
- Fixed
Fix missing global variable in browser (@irrationnelle)
- Security
10 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)
- 8.1.2
Various fixes by @sujin-park, @wwhurin & @Donghoon759
- 8.1.0
Document how to use
--enable-source-mapswith Mocha (@bcoe) - 8.1.0
Clean up some API docs (@craigtaub)
- 8.1.0
Sponsor images are now self-hosted (@Munter)
- 8.1.0
Use Rollup and Babel in build pipeline; add source map to published files (@Munter)
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.