Mocha v6.1.0 Release Notes

Release Date: 2019-04-07 // about 5 years ago
  • ๐Ÿ”’ :lock: Security Fixes

    • #3845: Update dependency "js-yaml" to v3.13.0 per npm security advisory (@plroebuck)

    :tada: Enhancements

    • #3766: Make reporter constructor support optional options parameter (@plroebuck)
    • #3760: Add support for config files with .jsonc extension (@sstephant)

    ๐Ÿ—„ :fax: Deprecations

    These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:

    ๐Ÿ›  :bug: Fixes

    • #3829: Use cwd-relative pathname to load config file (@plroebuck)
    • #3745: Fix async calls of this.skip() in "before each" hooks (@juergba)
    • #3669: Enable --allow-uncaught for uncaught exceptions thrown inside hooks (@givanse)

    and some regressions:

    ๐Ÿ“š :book: Documentation

    :nut_and_bolt: Other

    • #3830: Replace dependency "findup-sync" with "find-up" for faster startup (@cspotcode)
    • #3799: Update devDependencies to fix many npm vulnerabilities (@XhmikosR)