Socket
Socket
Sign inDemoInstall

mocha

Package Overview
Dependencies
Maintainers
0
Versions
199
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha - npm Package Versions

1
20

9.1.0

Diff

Changelog

Source

9.1.0 / 2021-08-20

:tada: Enhancements

  • #4716: Add new option --fail-zero (@juergba)
  • #4691: Add new option --node-option (@juergba)
  • #4607: Add output option to JSON reporter (@dorny)
juergba
published 9.0.3 •

Changelog

Source

9.0.3 / 2021-07-25

:bug: Fixes

  • #4702: Error rethrow from cwd-relative path while loading .mocharc.js (@kirill-golovan)

  • #4688: Usage of custom interface in parallel mode (@juergba)

  • #4687: ESM: don't swallow MODULE_NOT_FOUND errors in case of type:module (@giltayar)

juergba
published 9.0.2 •

Changelog

Source

9.0.2 / 2021-07-03

:bug: Fixes

  • #4668: ESM: make --require <dir> work with new import-first loading (@giltayar)

:nut_and_bolt: Other

juergba
published 9.0.1 •

Changelog

Source

9.0.1 / 2021-06-18

:nut_and_bolt: Other

  • #4657: Browser: add separate bundle for modern browsers (@juergba)

We added a separate browser bundle mocha-es2018.js in javascript ES2018, as we skipped the transpilation down to ES5. This is an experimental step towards freezing Mocha's support of IE11.

juergba
published 9.0.0 •

Changelog

Source

9.0.0 / 2021-06-07

:boom: Breaking Changes

Mocha is going ESM-first! This means that it will now use ESM import(test_file) to load the test files, instead of the CommonJS require(test_file). This is not a problem, as import can also load most files that require does. In the rare cases where this fails, it will fallback to require(...). This ESM-first approach is the next step in Mocha's ESM migration, and allows ESM loaders to load and transform the test file.

  • #4636: Remove deprecated utils.lookupFiles() (@juergba)

  • #4638: Limit the size of actual/expected for diff generation (@juergba)

  • #4389: Refactoring: Consuming log-symbols alternate to code for win32 in reporters/base (@MoonSupport)

:tada: Enhancements

:bug: Fixes

:nut_and_bolt: Other

juergba
published 8.4.0 •

Changelog

Source

8.4.0 / 2021-05-07

:tada: Enhancements

:bug: Fixes

:book: Documentation

  • #4630: Add options.require to Mocha constructor for root hook plugins on parallel runs (@juergba)
  • #4617: Dynamically generating tests with top-level await and ESM test files (@juergba)
  • #4608: Update default file extensions (@outsideris)

Also thanks to @outsideris for various improvements on our GH actions workflows.

juergba
published 8.3.2 •

Changelog

Source

8.3.2 / 2021-03-12

:bug: Fixes

:book: Documentation

juergba
published 8.3.1 •

Changelog

Source

8.3.1 / 2021-03-06

:bug: Fixes

  • #4577: Browser: fix EvalError caused by regenerator-runtime (@snoack)
  • #4574: ESM: allow import from mocha in parallel mode (@nicojs)
juergba
published 8.3.0 •

Changelog

Source

8.3.0 / 2021-02-11

:tada: Enhancements

:bug: Fixes

:book: Documentation

:nut_and_bolt: Other

Also thanks to @outsideris and @HyunSangHan for various fixes to our website and documentation.

boneskull
published 8.2.1 •

Changelog

Source

8.2.1 / 2020-11-02

Fixed stuff.

:bug: Fixes

  • #4489: Fix problematic handling of otherwise-unhandled Promise rejections and erroneous "done() called twice" errors (@boneskull)
  • #4496: Avoid MaxListenersExceededWarning in watch mode (@boneskull)

Also thanks to @akeating for a documentation fix!

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc