Update dependency mocha to v11
Notable changes
- add --fail-hook-affected-tests option to report skipped tests as failed (#5519) (#6052) (7830309)
- add modern Netlify to v11.x branch (#6082) (26deb23), closes #5696
- change site title to Mocha 11, update index note (#6086) (1f44d5f)
- CI: bump Node from 22 to 24 in publish action (#6206) (05aec43)
- make
describe().timeout()work (aafe6fd) - test: replace
wmicusage with native Windows API (#5694) (73ebdfa) - format all code (#5629) (0696784)
- remove Netlify (#5630) (8d01d33)
- swallow more
requireerrors from *ts files (#5498) (d89dbaf) - run tests on PRs for and pushes to v11.x (#5525) (8b21b38)
- setup release-please for v11 (#5522) (663fff4)
- watch mode using chokidar v4 (#5379) (c2667c3)
- migrate remaining legacy wiki pages to main documentation (#5465) (bff9166)
- remove trailing spaces (#5475) (7f68e5c)
- use original require() error for TS files if ERR_UNKNOWN_FILE_EXTENSION (#5408) (ebdbc48)
- add security escalation policy (#5466) (4122c7d)
- fix duplicate global leak documentation (#5461) (1164b9d)
- migrate third party UIs wiki page to docs (#5434) (6654704)
- update maintainer release notes for release-please (#5453) (185ae1e)
- deps: bump actions/setup-node in the github-actions group (#5459) (48c6f40)
- fail with an informative error message on a file with a broken default import (#5413) (b0e6135)
- load mjs files correctly (#5429) (a947b9b)
- add banner from old site to new site, link from new to old (#5414) (dedef11)
- add info on spies to legacy docs (#5421) (21f5544)
- explain node import swallowing error (#5401) (09f5b2c)
- fix links in new site (#5416) (b2bc769)
- migrate assertion libraries wiki link to main docs (#5442) (95f3ca8)
- migrate count assertions wiki page to docs (#5438) (02a306c)
- migrate shared behaviours to docs-next (#5432) (1dc4aa9)
- migrate Spies wiki page to explainers (#5420) (cbcf007)
- Migrate tagging wiki page to docs (#5435) (876247a)
- migrate third party reporters wiki page to docs (#5433) (f70764c)
- migrate to global leak wiki page to docs (#5437) (8a6fdca)
- update /next bug report link to be docs issue template (#5424) (668cb66)
- add issue form for ⚡️ Performance (#5406) (a908b3b)
- add test for
-R import-only-loader(#5391) (6ee5b48) - also test Node.js 24 in CI (#5405) (15f5980)
- bump CI to use 20.19.4, 22.18.0, 24.6.0 (#5430) (ace5eb4)
- bump Knip to 5.61.2 (#5394) (f3d7430)
- cleanup references of --opts (#5402) (1096b37)
- enabled ESLint's no-unused-vars (#5399) (d4168ae)
- move callback and object typedefs to a new types.d.ts (#5351) (3300d21)
- rewrite base path instead of copy-pasting (#5431) (c6c6740)
- unify caught errors as err (#5439) (d4912e7)
- Update experimental module detection test and pin exact Node versions (#5417) (2489090)
- deps: bump actions/checkout in the github-actions group (#5419) (03ac2d0)
- always fallback to import() if require() fails (#5384) (295c168)
- add esm loader test (#5383) (f58e49f)
- use require to load esm (#5366) (41e24a2)
- bump workerpool from ^6.5.1 to ^9.2.0 (#5350) (581a3c5)
- bump mimimatch from ^5.1.6 to ^9.0.5 (#5349) (a3dea85)
- bump diff from ^5.2.0 to ^7.0.0 (#5348) (554d6bb)
- added CHANGELOG.md note around 11.1 yargs-parser update (#5362) (618415d)
- add option to use posix exit code upon fatal signal (#4989) (91bbf85)
- Deploy new site alongside old one (#5360) (6c96545)
- mention explicit browser support range (#5354) (c514c0b)
- update Node.js version requirements for 11.x (#5329) (abf3dd9)
- remove prerelease setting in release-please config (#5363) (8878f22)
- deps: update chokidar to v4 (#5256) (8af0f1a)
- add ClientRedirects.astro (#5324) (b88d441)
- add example/tests.html to docs-next (#5325) (6ec5762)
- switch from ansi-colors to picocolors (#5323) (7c08d09)
- fix new website typos, improve readability (#5312) (fbceb19)
- "force" Netlify to use npm to build new site (#5319) (3a46855)
- Fix tests (#5320) (18699a0)
- enable reporters to show relative paths of tests (#5292) (81ea666)
- add instructions for API docs (#5287) (b720ec1)
- add new website using Astro Starlight (#5246) (b1f1cb7)
- improve third-party reporter docs (#5285) (c5a0ef5)
- enabled eslint-plugin-n (#5280) (945d6e3)
- pin node-lts tests to 22.11.0 (#5279) (664e1f4)
- replace
fs-extrawith newerfsbuilt-ins (#5284) (75dcf8c) - bump yargs to 17 (#5165) (8f1c8d8)
- replace
strip-ansiwithutil.stripVTControlCharacters(#5267) (3c191c0), closes #5265 - catch exceptions setting Error.stackTraceLimit (#5254) (259f8f8)
- error handling for unexpected numeric arguments passed to cli (#5263) (210d658)
- correct outdated
status: accepting prslink (#5268) (f729cd0) - replace "New in" with "Since" in version annotations (#5262) (6f10d12)
- bumped glob dependency from 8 to 10 (#5250) (43c3157)
- fix examples for
linkPartialObjectsmethods (#5255) (34e0e52) - adapt new engine range for Mocha 11 (#5216)
- allow calling hook methods (#5231) (e3da641)
- adapt new engine range for Mocha 11 (#5216) (80da25a)
- downgrade example/tests chai to 4.5.0 (#5245) (eac87e1)
- support errors with circular dependencies in object values with --parallel (#5212) (ba0fefe)
- test link in html reporter (#5224) (f054acc)
- indicate 'exports' interface does not work in browsers (#5181) (14e640e)
- fix docs builds by re-adding eleventy and ignoring gitignore again (#5240) (881e3b0)
- deps: bump the github-actions group with 1 update (#5132) (e536ab2)
- handle case of invalid package.json with no explicit config (#5198) (f72bc17)
- Typos on mochajs.org (#5237) (d8ca270)
- use accurate test links in HTML reporter (#5228) (68803b6)
- deps: update dependency starlight-blog to ^0.28.0 (#6153) (6b79044)
- docs: restore homepage logo (#6183) (06e81a8)
- docs: restore spacing around footer links (#6185) (163d751)
- use main instead of exports for the package entry point (#6193) (c32a696)
- blog: add community contributions post (#6172) (5fcc0fe)
- blog: update community-contributions to 2026-community-sponsorships (5462d84)
- fix blog/2026-community-sponsorships description (#6177) (98c4746)
- sync CLI docs with v12 options and defaults (#6140) (579fd15)
- deps: update dependency @playwright/test to v1.62.1 (#6197) (dcc539a)
- deps: update dependency eslint to v10.8.0 (#6196) (deeeec6)
- deps: update dependency globals to v17.9.0 (#6201) (c2c6d63)
- deps: update dependency knip to v6.31.0 (#6166) (b7cd1bd)
- deps: update dependency sinon to v22.1.0 (#6188) (284f0c2)
- deps: update dependency webpack to v5.109.2 (#6194) (badf733)
- extract stripLeadingDashes helper + cover CLI arg-parsing edge cases (#6171) (867e175)
- fix esm-utils tests when run without coverage (#6160) (c54539f)
- keep stderr out of the JSON parsed by the FIFO test (#6187) (ea6489e)
- limit token perms in protect-manifest workflow (#6175) (8cf0030)
- repo: change stale threshold from 2+2 to 1+1 (#6179) (7cb2678)
- deps: bump actions/stale from 10 to 11 in the github-actions group (#6207) (ce13809)
- make release-please build work (#5194) (afd66ef)
- replace he dependency with manual HTML encoding
- add --clear-screen option for watch mode (#6133) (3301ed7)
- add built-in github-actions reporter (#6088) (a99b8ba)
- deps: update dependency js-yaml to v5 (#6117) (2fb44ff)
- replace he dependency with manual HTML encoding (9f85d71)
- strip ANSI sequences from xunit output (bf76999)
- move legacy site link to bottom of homepage (#6093) (f3e7d37)
- add "Protect Release Please Manifest" workflow (#6099) (2d7bc22)
- add v12 RC 1 release notes (#5848) (275ce51)
- deps: bump unexpected to 13 and remove unused plugins (#6135) (b587012)
- deps: update actions/checkout action to v7 (#6114) (857945d)
- deps: update actions/github-script action to v9 (#6091) (a017f08)
- deps: update dependency eslint to v10.7.0 (#6134) (26d73d3)
- deps: update dependency eslint-plugin-n to v18.2.2 (#6137) (9d925f0)
- deps: update dependency globals to v17.7.0 (#6126) (864fb80)
- deps: update dependency js-yaml to v4.3.0 (#6141) (bd4fcf4)
- deps: update dependency knip to v6.24.0 (#6110) (bab1d4e)
- deps: update dependency knip to v6.26.0 (#6145) (c7cfbe9)
- deps: update dependency prettier to v3.9.5 (#6142) (55df0d1)
- deps: update dependency webpack to v5.108.4 (#6150) (4e072d1)
- deps: update dependency webpack-cli to v7.2.1 (#6151) (19978d7)
- deps: update playwright monorepo to v1.61.0 (#6108) (7ad398e)
- fix RC 1 blog publish time, rename to
...-rc-1(#6106) (00d59bc) - raise timeout for node-unit Mocha spec to fix flaky hook (#6118) (31ee8c5)
- require exact fixture references in integration tests (#6096) (d602cc7)
- retry touch in dir-add watch test to reduce flakiness (#6119) (061cb52)
- upgrade Astro to 7.1.1 (#6149) (a5f1caa)
- deps: bump actions/setup-node from 6 to 7 in the github-actions group across 1 directory (#6146) (a73e34c)
- #3825 fix: do not exit when only unref'd timer is present in test code (@boneskull)
- #5040 fix: support canonical module (@JacobLey)
mochajs/mocha (mocha)
v11.8.0
🌟 Features
🧹 Chores
- add modern Netlify to v11.x branch (#6082) (26deb23), closes #5696
- change site title to Mocha 11, update index note (#6086) (1f44d5f)
- CI: bump Node from 22 to 24 in publish action (#6206) (05aec43)
v11.7.6
🩹 Fixes
- make
describe().timeout()work (aafe6fd) - test: replace
wmicusage with native Windows API (#5694) (73ebdfa)
🧹 Chores
v11.7.5
🩹 Fixes
🧹 Chores
- run tests on PRs for and pushes to v11.x (#5525) (8b21b38)
- setup release-please for v11 (#5522) (663fff4)
v11.7.4
🩹 Fixes
📚 Documentation
🧹 Chores
v11.7.3
🩹 Fixes
📚 Documentation
- add security escalation policy (#5466) (4122c7d)
- fix duplicate global leak documentation (#5461) (1164b9d)
- migrate third party UIs wiki page to docs (#5434) (6654704)
- update maintainer release notes for release-please (#5453) (185ae1e)
🤖 Automation
v11.7.2
🩹 Fixes
- fail with an informative error message on a file with a broken default import (#5413) (b0e6135)
- load mjs files correctly (#5429) (a947b9b)
📚 Documentation
- add banner from old site to new site, link from new to old (#5414) (dedef11)
- add info on spies to legacy docs (#5421) (21f5544)
- explain node import swallowing error (#5401) (09f5b2c)
- fix links in new site (#5416) (b2bc769)
- migrate assertion libraries wiki link to main docs (#5442) (95f3ca8)
- migrate count assertions wiki page to docs (#5438) (02a306c)
- migrate shared behaviours to docs-next (#5432) (1dc4aa9)
- migrate Spies wiki page to explainers (#5420) (cbcf007)
- Migrate tagging wiki page to docs (#5435) (876247a)
- migrate third party reporters wiki page to docs (#5433) (f70764c)
- migrate to global leak wiki page to docs (#5437) (8a6fdca)
- update /next bug report link to be docs issue template (#5424) (668cb66)
🧹 Chores
- add issue form for ⚡️ Performance (#5406) (a908b3b)
- add test for
-R import-only-loader(#5391) (6ee5b48) - also test Node.js 24 in CI (#5405) (15f5980)
- bump CI to use 20.19.4, 22.18.0, 24.6.0 (#5430) (ace5eb4)
- bump Knip to 5.61.2 (#5394) (f3d7430)
- cleanup references of --opts (#5402) (1096b37)
- enabled ESLint's no-unused-vars (#5399) (d4168ae)
- move callback and object typedefs to a new types.d.ts (#5351) (3300d21)
- rewrite base path instead of copy-pasting (#5431) (c6c6740)
- unify caught errors as err (#5439) (d4912e7)
- Update experimental module detection test and pin exact Node versions (#5417) (2489090)
🤖 Automation
v11.7.1
🩹 Fixes
🧹 Chores
v11.7.0
🌟 Features
v11.6.0
🌟 Features
v11.5.0
🌟 Features
v11.4.0
🌟 Features
📚 Documentation
v11.3.0
🌟 Features
📚 Documentation
- Deploy new site alongside old one (#5360) (6c96545)
- mention explicit browser support range (#5354) (c514c0b)
- update Node.js version requirements for 11.x (#5329) (abf3dd9)
🧹 Chores
v11.2.2
🩹 Fixes
📚 Documentation
v11.2.1
🩹 Fixes
📚 Documentation
🧹 Chores
v11.2.0
🌟 Features
📚 Documentation
- add instructions for API docs (#5287) (b720ec1)
- add new website using Astro Starlight (#5246) (b1f1cb7)
- improve third-party reporter docs (#5285) (c5a0ef5)
🧹 Chores
- enabled eslint-plugin-n (#5280) (945d6e3)
- pin node-lts tests to 22.11.0 (#5279) (664e1f4)
- replace
fs-extrawith newerfsbuilt-ins (#5284) (75dcf8c)
v11.1.0
🌟 Features
- bump yargs to 17 (#5165) (8f1c8d8)
- Note that this also included a version bump of
yargs-parserfrom^20.2.9to^21.1., which fixed a bug that caused extra quotes in file paths to be removed.
See #5341 for more information.
- Note that this also included a version bump of
- replace
strip-ansiwithutil.stripVTControlCharacters(#5267) (3c191c0), closes #5265
v11.0.2
🩹 Fixes
- catch exceptions setting Error.stackTraceLimit (#5254) (259f8f8)
- error handling for unexpected numeric arguments passed to cli (#5263) (210d658)
📚 Documentation
- correct outdated
status: accepting prslink (#5268) (f729cd0) - replace "New in" with "Since" in version annotations (#5262) (6f10d12)
v11.0.1
🌟 Features
📚 Documentation
v11.0.0
⚠ BREAKING CHANGES
- adapt new engine range for Mocha 11 (#5216)
🌟 Features
🩹 Fixes
📚 Documentation
v10.8.2
🩹 Fixes
- support errors with circular dependencies in object values with --parallel (#5212) (ba0fefe)
- test link in html reporter (#5224) (f054acc)
📚 Documentation
🧹 Chores
🤖 Automation
v10.8.1
🩹 Fixes
- handle case of invalid package.json with no explicit config (#5198) (f72bc17)
- Typos on mochajs.org (#5237) (d8ca270)
- use accurate test links in HTML reporter (#5228) (68803b6)
v10.8.0
🩹 Fixes
- deps: update dependency starlight-blog to ^0.28.0 (#6153) (6b79044)
- docs: restore homepage logo (#6183) (06e81a8)
- docs: restore spacing around footer links (#6185) (163d751)
- use main instead of exports for the package entry point (#6193) (c32a696)
📚 Documentation
- blog: add community contributions post (#6172) (5fcc0fe)
- blog: update community-contributions to 2026-community-sponsorships (5462d84)
- fix blog/2026-community-sponsorships description (#6177) (98c4746)
- sync CLI docs with v12 options and defaults (#6140) (579fd15)
🧹 Chores
- deps: update dependency @playwright/test to v1.62.1 (#6197) (dcc539a)
- deps: update dependency eslint to v10.8.0 (#6196) (deeeec6)
- deps: update dependency globals to v17.9.0 (#6201) (c2c6d63)
- deps: update dependency knip to v6.31.0 (#6166) (b7cd1bd)
- deps: update dependency sinon to v22.1.0 (#6188) (284f0c2)
- deps: update dependency webpack to v5.109.2 (#6194) (badf733)
- extract stripLeadingDashes helper + cover CLI arg-parsing edge cases (#6171) (867e175)
- fix esm-utils tests when run without coverage (#6160) (c54539f)
- keep stderr out of the JSON parsed by the FIFO test (#6187) (ea6489e)
- limit token perms in protect-manifest workflow (#6175) (8cf0030)
- repo: change stale threshold from 2+2 to 1+1 (#6179) (7cb2678)
🤖 Automation
v10.7.3
🩹 Fixes
v10.7.0
⚠ BREAKING CHANGES
- replace he dependency with manual HTML encoding
🌟 Features
- add --clear-screen option for watch mode (#6133) (3301ed7)
- add built-in github-actions reporter (#6088) (a99b8ba)
🩹 Fixes
- deps: update dependency js-yaml to v5 (#6117) (2fb44ff)
- replace he dependency with manual HTML encoding (9f85d71)
- strip ANSI sequences from xunit output (bf76999)
📚 Documentation
🧹 Chores
- add "Protect Release Please Manifest" workflow (#6099) (2d7bc22)
- add v12 RC 1 release notes (#5848) (275ce51)
- deps: bump unexpected to 13 and remove unused plugins (#6135) (b587012)
- deps: update actions/checkout action to v7 (#6114) (857945d)
- deps: update actions/github-script action to v9 (#6091) (a017f08)
- deps: update dependency eslint to v10.7.0 (#6134) (26d73d3)
- deps: update dependency eslint-plugin-n to v18.2.2 (#6137) (9d925f0)
- deps: update dependency globals to v17.7.0 (#6126) (864fb80)
- deps: update dependency js-yaml to v4.3.0 (#6141) (bd4fcf4)
- deps: update dependency knip to v6.24.0 (#6110) (bab1d4e)
- deps: update dependency knip to v6.26.0 (#6145) (c7cfbe9)
- deps: update dependency prettier to v3.9.5 (#6142) (55df0d1)
- deps: update dependency webpack to v5.108.4 (#6150) (4e072d1)
- deps: update dependency webpack-cli to v7.2.1 (#6151) (19978d7)
- deps: update playwright monorepo to v1.61.0 (#6108) (7ad398e)
- fix RC 1 blog publish time, rename to
...-rc-1(#6106) (00d59bc) - raise timeout for node-unit Mocha spec to fix flaky hook (#6118) (31ee8c5)
- require exact fixture references in integration tests (#6096) (d602cc7)
- retry touch in dir-add watch test to reduce flakiness (#6119) (061cb52)
- upgrade Astro to 7.1.1 (#6149) (a5f1caa)
🤖 Automation
- deps: bump actions/setup-node from 6 to 7 in the github-actions group across 1 directory (#6146) (a73e34c)
v10.6.1
🐛 Fixes
- #3825 fix: do not exit when only unref'd timer is present in test code (@boneskull)
- #5040 fix: support canonical module (@JacobLey)
List of commits
ff59451 (Update dependency mocha to v11, 2026-11-16)