Never miss a release that matters

AI-powered summaries of every GitHub release.

AI Summaries

Changelogs condensed into clear, actionable insights.

Always Free

Track up to 5 packages at no cost, forever.

Weekly Digest

A curated summary of every release, delivered weekly.

Get Started Free
mochav11.x
18 releases

TL;DR

Mocha now correctly respects describe().timeout() settings, ensuring tests are properly timed out when they exceed specified limits.

Fixes Worth Knowing

Tests on Windows now use native APIs instead of wmic, improving reliability and potentially performance.

v11.7.6v11.7.6
May 18, 2026
v11.7.5v11.7.5
Nov 5, 2025
v11.7.4v11.7.4
Oct 1, 2025
v11.7.3v11.7.3
Sep 30, 2025
v11.7.2v11.7.2
Sep 1, 2025
v11.7.1v11.7.1
Jun 24, 2025
v11.7.0v11.7.0
Jun 18, 2025
v11.6.0v11.6.0
Jun 9, 2025
v11.5.0v11.5.0
May 23, 2025
v11.4.0v11.4.0
May 19, 2025
v11.3.0v11.3.0
May 16, 2025
v11.2.2v11.2.2
Apr 10, 2025
v11.2.1v11.2.1
Apr 10, 2025
v11.2.0v11.2.0
Mar 17, 2025
v11.1.0v11.1.0
Jan 2, 2025
v11.0.2v11.0.2
Dec 9, 2024
v11.0.1v11.0.1
Dec 2, 2024
Nov 11, 2024
mochav-1.x
17 releases

TL;DR

Mocha is migrating to ECMAScript Modules (ESM), improving modern JavaScript compatibility and developer experience.

Breaking

  • Removed unused legacy functions from errors.js. (May affect tests directly using those functions)

New

  • Added a guide for setting up Mocha with TypeScript. (Helps users adopt TypeScript for testing)

Fixes Worth Knowing

  • Corrected issues in error codes, CLI defaults, and configuration documentation. (Improves usability and accuracy of Mocha’s behavior)
  • Updated dependencies including ESLint, Sinon, and NYC. (Ensures compatibility and benefits from upstream improvements)

Before You Upgrade

  • Review your tests for any direct usage of the removed functions from errors.js and update accordingly.
v12.0.0-beta-9.4v12.0.0-beta-9.4
May 16, 2026
v12.0.0-alpha-issue-5899.4v12.0.0-alpha-issue-5899.4
May 2, 2026
v12.0.0-alpha-issue-5899.3v12.0.0-alpha-issue-5899.3
May 2, 2026
v12.0.0-alpha-issue-5899.2v12.0.0-alpha-issue-5899.2
May 2, 2026
v12.0.0-alpha-issue-5899.1v12.0.0-alpha-issue-5899.1
May 2, 2026
v12.0.0-beta-9.3v12.0.0-beta-9.3
Apr 28, 2026
v12.0.0-beta-9.2v12.0.0-beta-9.2
Apr 3, 2026
v12.0.0-beta-10v12.0.0-beta-10
Feb 21, 2026
v12.0.0-beta-9v12.0.0-beta-9
Feb 13, 2026
v12.0.0-beta-8v12.0.0-beta-8
Feb 6, 2026
v12.0.0-beta-7v12.0.0-beta-7
Feb 4, 2026
v12.0.0-beta-6v12.0.0-beta-6
Jan 23, 2026
v12.0.0-beta-5v12.0.0-beta-5
Jan 16, 2026
v12.0.0-beta-4v12.0.0-beta-4
Jan 4, 2026
v12.0.0-beta-3v12.0.0-beta-3
Jan 1, 2026
v12.0.0-beta-2v12.0.0-beta-2
Nov 27, 2025
v12.0.0-beta-1v12.0.0-beta-1
Nov 25, 2025
mochav10.x
17 releases

TL;DR

Mocha now highlights test failures specifically occurring in browser environments, making it easier to diagnose platform-specific issues.

New

  • Browser Failure Highlighting: Test results now clearly indicate failures happening in browsers.

Fixes Worth Knowing

  • Fixed an issue where tests with circular dependencies (complex object structures) would fail when running in parallel.
  • Improved HTML reporter links to accurately point to test files.
  • Resolved compatibility issues with older browsers by removing a newer CSS selector.
  • Addressed issues with invalid package.json files preventing Mocha from loading configurations.

Before You Upgrade

If you rely on the exports interface, note that it is not supported in browser environments.

v10.8.2v10.8.2
Oct 30, 2024
v10.8.1v10.8.1
Oct 29, 2024
v10.8.0v10.8.0
Oct 29, 2024
v10.7.3v10.7.3
Aug 9, 2024
v10.7.2v10.7.2
Aug 6, 2024
v10.7.1v10.7.1
Aug 6, 2024
v10.7.0v10.7.0
Jul 20, 2024
v10.6.1v10.6.1
Jul 20, 2024
v10.6.0v10.6.0
Jul 2, 2024
v10.5.2v10.5.2
Jun 26, 2024
v10.5.1v10.5.1
Jun 25, 2024
v10.5.0v10.5.0
Jun 24, 2024
v10.4.0
Mar 26, 2024
v10.3.0v10.3.0
Feb 8, 2024
v10.2.0v10.2.0
Dec 11, 2022
v10.1.0v10.1.0
Oct 15, 2022
v10.0.0v10.0.0
May 1, 2022
mochav10.xprerelease
1 release

TL;DR

Mocha now includes security updates by upgrading the glob dependency, addressing a known vulnerability.

Fixes Worth Knowing

Resolved an issue with deprecated warnings in GitHub Actions. Documentation has been improved with corrected examples and clearer contributor guidelines.

v10.3.0-preminor.0v10.3.0-preminor.0
Jan 30, 2024
mochav9.x
12 releases

TL;DR

Mocha now handles reporter loading and dry-run mode more reliably, preventing crashes and improving stability when running tests.

Fixes Worth Knowing

  • Reporter loading errors are now more accurate.
  • Running Mocha with the dry-run flag (testing without execution) is more stable.
v9.2.2v9.2.2
Mar 11, 2022
v9.2.1v9.2.1
Feb 19, 2022
v9.2.0v9.2.0
Jan 24, 2022
v9.1.4v9.1.4
Jan 14, 2022
v9.1.3v9.1.3
Oct 15, 2021
v9.1.2v9.1.2
Sep 25, 2021
v9.1.1v9.1.1
Aug 28, 2021
v9.1.0v9.1.0
Aug 20, 2021
v9.0.3v9.0.3
Jul 25, 2021
v9.0.2v9.0.2
Jul 3, 2021
v9.0.1v9.0.1
Jun 18, 2021
v9.0.0v9.0.0
Jun 7, 2021
mochav8.x
12 releases

TL;DR

Mocha now supports dynamically generating tests with top-level await in ESM (ECMAScript Modules) files, improving flexibility for modern JavaScript projects.

New

  • Dynamically generate tests using top-level await with ESM files.
  • Improved support for root hook plugins when running tests in parallel.

Fixes Worth Knowing

  • Watch mode no longer crashes when reloading files.
  • CLI file parsing errors now include error codes for easier debugging.

Before You Upgrade

Update your test files to use the latest default file extensions.

v8.4.0v8.4.0
May 7, 2021
v8.3.2v8.3.2
Mar 12, 2021
v8.3.1v8.3.1
Mar 6, 2021
v8.3.0v8.3.0
Feb 11, 2021
v8.2.1v8.2.1
Nov 2, 2020
v8.2.0v8.2.0
Oct 16, 2020
v8.1.3v8.1.3
Aug 28, 2020
v8.1.2v8.1.2
Aug 25, 2020
v8.1.1v8.1.1
Aug 4, 2020
v8.1.0v8.1.0
Jul 30, 2020
v8.0.1v8.0.1
Jun 10, 2020
v8.0.0v8.0.0
Jun 10, 2020
mochav7.x
6 releases

TL;DR

Mocha now allows running tests multiple times within a single instance, improving efficiency for scenarios like retries or rapid development cycles.

Fixes Worth Knowing

Several fixes improve reliability: --forbid-only now correctly prevents running it.only tests, multiple done() calls in asynchronous tests are handled correctly, and configuration file loading is more robust. Invalid reporter warnings are also now displayed properly.

v7.2.0v7.2.0
May 23, 2020
v7.1.2v7.1.2
Apr 26, 2020
v7.1.1v7.1.1
Mar 18, 2020
v7.1.0v7.1.0
Feb 26, 2020
v7.0.1v7.0.1
Jan 26, 2020
v7.0.0v7.0.0
Jan 4, 2020
mochav6.x
12 releases

TL;DR

Mocha now includes critical security updates, patching vulnerabilities in its dependencies to protect your testing environment.

Fixes Worth Knowing

Updated dependencies address security vulnerabilities, improving the overall stability and security of your test runs. (Dependencies are external libraries)

Mar 25, 2020
v6.2.2v6.2.2
Oct 18, 2019
v6.2.1v6.2.1
Oct 3, 2019
v6.2.0v6.2.0
Jul 18, 2019
v6.1.4v6.1.4
Apr 18, 2019
v6.1.3v6.1.3
Apr 12, 2019
v6.1.2v6.1.2
Apr 8, 2019
v6.1.1v6.1.1
Apr 7, 2019
v6.1.0v6.1.0
Apr 7, 2019
v6.0.2v6.0.2
Feb 25, 2019
v6.0.1v6.0.1
Feb 21, 2019
v6.0.0v6.0.0
Feb 18, 2019
mochav7.xprerelease
1 release

TL;DR

Mocha now supports native ECMAScript Modules (JavaScript modules) in Node.js, allowing you to import tests directly.

Breaking

  • ESM support has limitations: --watch, --require, custom reporters, custom UIs, and mocharc configuration are not yet compatible. (Testing setup/tools)

New

  • Native ESM support allows using import statements in test files. (JavaScript modules)

Before You Upgrade

  • Ensure you are using Node.js v12.11.0 or higher; Node.js versions below 13.2.0 require the --experimental-modules flag.
Jan 12, 2020
mochav6.xprerelease
2 releases

TL;DR

Mocha 6.0 introduces a new configuration system with support for .mocharc.js, .mocharc.json, and package.json files, offering more flexible and prioritized test setup.

Breaking

  • Node.js v4.x is no longer supported.
  • --grep and --fgrep cannot be used together.
  • --compilers option is removed.
  • -d is no longer an alias for --debug.
  • --watch-extensions requires explicitly including js.
  • tap reporter now emits error messages.
  • Conditional skips in before hooks now skip subsequent hooks and tests.
  • mocha.opts parsing now throws an error if the file isn’t found.
  • Instantiating a Base-extending reporter requires a Runner parameter.
  • Error objects now have a code property; use this instead of message for reliable error type checking.

New

  • Mocha now supports configuration files (JS, JSON, YAML, or package.json) with a defined priority order.
  • Node/V8 flags can now be passed directly to the mocha executable
v6.0.0-0v6.0.0-0
Feb 21, 2019
v6.0.0-1v6.0.0-1
Jan 2, 2019
mochav5.x
9 releases

TL;DR

Mocha now supports comments within your mocha.opts configuration file, improving readability and organization.

New

  • Mocha now includes dedicated API documentation (developer reference materials).

Fixes Worth Knowing

  • Using the --bail flag now correctly stops execution after a failure, even within before hooks (setup code).
v5.2.0v5.2.0
May 18, 2018
v5.1.1v5.1.1
Apr 18, 2018
v5.1.0v5.1.0
Apr 12, 2018
v5.0.5v5.0.5
Mar 23, 2018
v5.0.4v5.0.4
Mar 7, 2018
v5.0.3v5.0.3
Mar 7, 2018
v5.0.2v5.0.2
Mar 6, 2018
v5.0.1v5.0.1
Feb 8, 2018
v5.0.0v5.0.0
Jan 18, 2018
mochav4.x
3 releases

TL;DR

Mocha now computes diffs (code comparison) eagerly, preventing misleading output, and offers more flexibility with the --no-diff flag to disable diffs entirely.

Fixes Worth Knowing

  • xit (skipped test) now correctly returns its test object.
  • The progress reporter now accepts custom reporter options.
  • --help now works even when using a mocha.opts configuration file.

New

  • Mocha's API setters now also function as getters when called without arguments, simplifying property access.
v4.1.0v4.1.0
Dec 29, 2017
v4.0.1v4.0.1
Oct 6, 2017
v4.0.0v4.0.0
Oct 3, 2017
mochav3.x
13 releases

TL;DR

Mocha now correctly handles unicode characters and invalid entities in the XUnit reporter (test output format), improving the reliability of test results.

Fixes Worth Knowing

  • Fixed an issue where xit (skipped test) wasn’t available when using the require interface.
  • Resolved failures related to using Mocha with AMD (Asynchronous Module Definition) loaders.
v3.5.3v3.5.3
Sep 11, 2017
v3.5.2v3.5.2
Sep 10, 2017
v3.5.1v3.5.1
Sep 10, 2017
v3.5.0v3.5.0
Jul 31, 2017
May 24, 2017
May 14, 2017
v3.4.0
May 14, 2017
v3.3.0coverave
Apr 24, 2017
Nov 24, 2016
Oct 11, 2016
Oct 10, 2016
Sep 27, 2016
v3.0.2v3.0.2
Sep 14, 2016
mochav3.xprerelease
3 releases

TL;DR

Mocha now supports ES2017 async/await testing natively, simplifying asynchronous test code.

Breaking

  • Removed require support for test files (use import statements).
  • Dropped Node.js v0.8 and v4 support (ensure compatible Node version).

New

  • Added support for async/await in tests, allowing cleaner asynchronous code.
  • Improved stack traces for better debugging.

Fixes Worth Knowing

  • Fixed a bug where tests would sometimes hang when using beforeEach and afterEach hooks.
  • Resolved issues with test ordering in some cases.

Before You Upgrade

  • Update your test files to use import statements instead of require.
  • Ensure you are using a supported Node.js version (v6 or higher).
Jul 26, 2016
Jul 16, 2016
Jul 3, 2016