Skip to content

Upgrading mocha 9 to 10

Breaking9.2.2 → 10.8.2Breaking6Security1Platform1New7Changed11Fixed14Other44

BreakingUpgrade verdict

6 breaking changes and a platform requirement change and a security fix.

  • Mocha no longer supports running tests in Internet Explorer 11.
  • Loading Mocha through AMD/RequireJS is no longer supported.
  • Mocha no longer sends Growl desktop notifications.
  • The command-line entry file is now named mocha.js instead of mocha.
Top 5 of 8 that need code or config changes

Node.js requirement changed in 10.0.0: >= 12.0.0 → >= 14.0.0.

Drops @ungap/promise-all-settled, growl, nanoid, which.

Installs 71 packages in all (was 80).

Breaking6
Drops Internet Explorer 11 support.
Drops AMD/RequireJS support.
Drops Growl notification support.
Renames executable bin/mocha to bin/mocha.js.
bin/mochabin/mocha.js
Removes the deprecated Runner signature.
Runner
Upgrades Minimatch for the --ignore option on Windows.
--ignoreMinimatch
Security1
Updates glob to address a vulnerability in a dependency, fixing issue #4837.
glob
Platform1
Drops Node.js v12.x support.