mocha

☕️ simple, flexible, fun javascript test framework for node.js & the browser

MIT License

Downloads
32.7M
Stars
22.4K
Committers
555

Bot releases are hidden (Show)

mocha - Latest Release

Published by voxpelli 7 months ago

10.4.0 / 2024-03-26

🎉 Enhancements

  • #4829 feat: include .cause stacks in the error stack traces (@voxpelli)
  • #4985 feat: add file path to xunit reporter (@bmish)

🐛 Fixes

  • #5074 fix: harden error handling in lib/cli/run.js (@stalet)

🔩 Other

mocha - v10.3.0

Published by JoshuaKGoldberg 9 months ago

This is a stable release equivalent to v10.3.0-preminor.0.

What's Changed

New Contributors

Full Changelog: https://github.com/mochajs/mocha/compare/v10.2.0...v10.3.0

mocha - v10.3.0-preminor.0

Published by JoshuaKGoldberg 9 months ago

A test release tagged with next on npm, to test that we can do releases at all. See #5081 for context.

What's Changed

New Contributors

Full Changelog: https://github.com/mochajs/mocha/compare/v10.2.0...v10.3.0-preminor.0

mocha - v10.2.0

Published by juergba almost 2 years ago

10.2.0 / 2022-12-11

🎉 Enhancements

  • #4945: API: add possibility to decorate ESM name before import (@j0tunn)

🐛 Fixes

📖 Documentation

mocha - v10.1.0

Published by juergba about 2 years ago

10.1.0 / 2022-10-16

🎉 Enhancements

  • #4896: Browser: add support for prefers-color-scheme: dark (@greggman)

:nut_and_bolt: Other

mocha - v10.0.0

Published by juergba over 2 years ago

10.0.0 / 2022-05-01

💥 Breaking Changes

:nut_and_bolt: Other

Also thanks to @ea2305 and @SukkaW for improvements to our documentation.

mocha - v9.2.2

Published by juergba over 2 years ago

9.2.2 / 2022-03-11

Please also note our announcements.

🐛 Fixes

:nut_and_bolt: Other

mocha - v9.2.1

Published by juergba over 2 years ago

9.2.1 / 2022-02-19

Please also note our announcements.

🐛 Fixes

  • #4832: Loading of config files throws wrong error (@juergba)

  • #4799: Reporter: configurable maxDiffSize reporter-option (@norla)

mocha - v9.2.0

Published by juergba over 2 years ago

9.2.0 / 2022-01-24

Please also note our announcements.

🎉 Enhancements

  • #4813: Parallel: assign each worker a worker-id (@forty)

:nut_and_bolt: Other

mocha - v9.1.4

Published by juergba almost 3 years ago

9.1.4 / 2022-01-14

Please also note our announcements.

🐛 Fixes

🔩 Other

mocha - v9.1.3

Published by juergba about 3 years ago

9.1.3 / 2021-10-15

Please also note our announcements.

🐛 Fixes

🔩 Other

mocha - v9.1.2

Published by juergba about 3 years ago

9.1.2 / 2021-09-25

Please also note our announcements.

🐛 Fixes

🔩 Other

mocha - v9.1.1

Published by juergba about 3 years ago

9.1.1 / 2021-08-28

Please also note our announcements.

🐛 Fixes

mocha - v9.1.0

Published by juergba about 3 years ago

9.1.0 / 2021-08-20

Please also note our announcements.

🎉 Enhancements

mocha - v9.0.3

Published by juergba about 3 years ago

9.0.3 / 2021-07-25

🐛 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)

mocha - v9.0.2

Published by juergba over 3 years ago

9.0.2 / 2021-07-03

🐛 Fixes

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

🔩 Other

mocha - v9.0.1

Published by juergba over 3 years ago

9.0.1 / 2021-06-18

🔩 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.

mocha - v9.0.0

Published by juergba over 3 years ago

9.0.0 / 2021-06-07

💥 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)

🎉 Enhancements

🐛 Fixes

  • #4128: Fix: control stringification of error message (@syeutyu)

🔩 Other

mocha - v8.4.0

Published by juergba over 3 years ago

8.4.0 / 2021-05-07

🎉 Enhancements

🐛 Fixes

📖 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.

mocha - v8.3.2

Published by juergba over 3 years ago

8.3.2 / 2021-03-12

🐛 Fixes

📖 Documentation