Upgrading mocha 5 to 6
Breaking5.2.0 → 6.2.3Breaking11Security4Platform1Deprecated7New21Changed8Fixed59Other47
11 breaking changes and a platform requirement change and 4 security fixes.
- The old --compilers flag no longer works and Mocha will error out if you pass it.
- The short -d flag no longer turns on debug mode and is silently ignored.
- If you rely on watching JavaScript files, you must now list js in the watch extensions.
- You can no longer combine the two test-filtering options; Mocha will stop with an error.
Node.js requirement changed in 6.0.0-0: >= 4.0.0 → >= 6.0.0.
Adds ansi-colors 3.2.3, find-up 3.0.0, js-yaml 3.13.1, log-symbols 2.2.0, ms 2.1.1, node-environment-flags 1.0.5, object.assign 4.1.0, strip-json-comments 2.0.1, which 1.3.1, wide-align 1.1.3, yargs 13.3.2, yargs-parser 13.1.2, yargs-unparser 1.6.0.
Drops commander.
Installs 171 packages in all (was 23).
Also installs ansi-regex, ansi-styles, argparse, array-buffer-byte-length, array.prototype.reduce, arraybuffer.prototype.slice, async-function, async-generator-function, available-typed-arrays, call-bind, call-bind-apply-helpers, call-bound, camelcase, chalk, cliui and 111 more.
Moves debug 3.1.0 → 3.2.6, glob 7.1.2 → 7.1.3, he 1.1.1 → 1.2.0, minimist 0.0.8 → 1.2.8, mkdirp 0.5.1 → 0.5.4, ms 2.0.0 → 2.1.1, supports-color 5.4.0 → 5.5.0, 6.0.0. Your build may pick other versions.
What you must change
--compilers-d--debug--watch-extensions--grep--fgreptaplib/template.htmllib/browser/template.htmlmocha.optsBaseRunnercodemessagebeforemkdirpyargs-parseryargsjs-yamljs-yamlDeprecations to plan for
--exclude--ignorethis.skip()-gc--gc-globalbin/optionsloadMochaOptsloadOptionslib/cli/optionsMochacoloruseColorsMochatimeoutenableTimeoutsmocha.opts