astorije / chai-immutable

Chai assertions for Facebook's Immutable library for JavaScript collections
MIT License
159 stars 16 forks source link

Update dependency mocha to v10 #322

Open renovate[bot] opened 2 years ago

renovate[bot] commented 2 years ago

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mocha (source) 6.2.3 -> 10.8.2 age adoption passing confidence

Release Notes

mochajs/mocha (mocha) ### [`v10.8.2`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1082-2024-10-30) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.8.1...v10.8.2) ##### ๐Ÿฉน Fixes - support errors with circular dependencies in object values with --parallel ([#​5212](https://redirect.github.com/mochajs/mocha/issues/5212)) ([ba0fefe](https://redirect.github.com/mochajs/mocha/commit/ba0fefe10b08a689cf49edc3818026938aa3a240)) - test link in html reporter ([#​5224](https://redirect.github.com/mochajs/mocha/issues/5224)) ([f054acc](https://redirect.github.com/mochajs/mocha/commit/f054acc1f60714bbe00ad1ab270fb4977836d045)) ##### ๐Ÿ“š Documentation - indicate 'exports' interface does not work in browsers ([#​5181](https://redirect.github.com/mochajs/mocha/issues/5181)) ([14e640e](https://redirect.github.com/mochajs/mocha/commit/14e640ee49718d587779a9594b18f3796c42cf2a)) ##### ๐Ÿงน Chores - fix docs builds by re-adding eleventy and ignoring gitignore again ([#​5240](https://redirect.github.com/mochajs/mocha/issues/5240)) ([881e3b0](https://redirect.github.com/mochajs/mocha/commit/881e3b0ca2e24284aab2a04f63639a0aa9e0ad1b)) ##### ๐Ÿค– Automation - **deps:** bump the github-actions group with 1 update ([#​5132](https://redirect.github.com/mochajs/mocha/issues/5132)) ([e536ab2](https://redirect.github.com/mochajs/mocha/commit/e536ab25b308774e3103006c044cb996a2e17c87)) ### [`v10.8.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1081-2024-10-29) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.8.0...v10.8.1) ##### ๐Ÿฉน Fixes - handle case of invalid package.json with no explicit config ([#​5198](https://redirect.github.com/mochajs/mocha/issues/5198)) ([f72bc17](https://redirect.github.com/mochajs/mocha/commit/f72bc17cb44164bcfff7abc83d0d37d99a061104)) - Typos on mochajs.org ([#​5237](https://redirect.github.com/mochajs/mocha/issues/5237)) ([d8ca270](https://redirect.github.com/mochajs/mocha/commit/d8ca270a960554c9d5c5fbf264e89d668d01ff0d)) - use accurate test links in HTML reporter ([#​5228](https://redirect.github.com/mochajs/mocha/issues/5228)) ([68803b6](https://redirect.github.com/mochajs/mocha/commit/68803b685d55dcccc51fa6ccfd27701cda4e26ed)) ### [`v10.8.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1080-2024-10-29) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.7.3...v10.8.0) ##### ๐ŸŒŸ Features - highlight browser failures ([#​5222](https://redirect.github.com/mochajs/mocha/issues/5222)) ([8ff4845](https://redirect.github.com/mochajs/mocha/commit/8ff48453a8b12d9cacf56b0c0c544c8256af64c7)) ##### ๐Ÿฉน Fixes - remove `:is()` from `mocha.css` to support older browsers ([#​5225](https://redirect.github.com/mochajs/mocha/issues/5225)) ([#​5227](https://redirect.github.com/mochajs/mocha/issues/5227)) ([0a24b58](https://redirect.github.com/mochajs/mocha/commit/0a24b58477ea8ad146afc798930800b02c08790a)) ##### ๐Ÿ“š Documentation - add `SECURITY.md` pointing to Tidelift ([#​5210](https://redirect.github.com/mochajs/mocha/issues/5210)) ([bd7e63a](https://redirect.github.com/mochajs/mocha/commit/bd7e63a1f6d98535ce1ed1ecdb57b3e4db8a33c5)) - adopt Collective Funds Guidelines 0.1 ([#​5199](https://redirect.github.com/mochajs/mocha/issues/5199)) ([2b03d86](https://redirect.github.com/mochajs/mocha/commit/2b03d865eec63d627ff229e07d777f25061260d4)) - update README, LICENSE and fix outdated ([#​5197](https://redirect.github.com/mochajs/mocha/issues/5197)) ([1203e0e](https://redirect.github.com/mochajs/mocha/commit/1203e0ed739bbbf12166078738357fdb29a8c000)) ##### ๐Ÿงน Chores - fix npm scripts on windows ([#​5219](https://redirect.github.com/mochajs/mocha/issues/5219)) ([1173da0](https://redirect.github.com/mochajs/mocha/commit/1173da0bf614e8d2a826687802ee8cbe8671ccf1)) - remove trailing whitespace in SECURITY.md ([7563e59](https://redirect.github.com/mochajs/mocha/commit/7563e59ae3c78ada305d26eadb86998ab54342da)) ### [`v10.7.3`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1073-2024-08-09) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.7.0...v10.7.3) ##### ๐Ÿฉน Fixes - make release-please build work ([#​5194](https://redirect.github.com/mochajs/mocha/issues/5194)) ([afd66ef](https://redirect.github.com/mochajs/mocha/commit/afd66ef3df20fab51ce38b97216c09108e5c2bfd)) ### [`v10.7.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1070--2024-07-20) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.6.1...v10.7.0) ##### :tada: Enhancements - [#​4771](https://redirect.github.com/mochajs/mocha/pull/4771) feat: add option to not fail on failing test suite ([**@​ilgonmic**](https://redirect.github.com/ilgonmic)) ### [`v10.6.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1061--2024-07-20) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.6.0...v10.6.1) ##### :bug: Fixes - [#​3825](https://redirect.github.com/mochajs/mocha/pull/3825) fix: do not exit when only unref'd timer is present in test code ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​5040](https://redirect.github.com/mochajs/mocha/pull/5040) fix: support canonical module ([**@​JacobLey**](https://redirect.github.com/JacobLey)) ### [`v10.6.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1060--2024-07-02) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.5.2...v10.6.0) ##### :tada: Enhancements - [#​5150](https://redirect.github.com/mochajs/mocha/pull/5150) feat: allow ^ versions for character encoding packages ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5151](https://redirect.github.com/mochajs/mocha/pull/5151) feat: allow ^ versions for file matching packages ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5152](https://redirect.github.com/mochajs/mocha/pull/5152) feat: allow ^ versions for yargs packages ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5153](https://redirect.github.com/mochajs/mocha/pull/5153) feat: allow ^ versions for data serialization packages ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5154](https://redirect.github.com/mochajs/mocha/pull/5154) feat: allow ^ versions for miscellaneous packages ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) ### [`v10.5.2`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1052--2024-05-25) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.5.1...v10.5.2) ##### :bug: Fixes - [#​5032](https://redirect.github.com/mochajs/mocha/pull/5032) fix: better tracking of seen objects in error serialization ([**@​sam-super**](https://redirect.github.com/sam-super)) ### [`v10.5.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1051--2024-05-24) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.5.0...v10.5.1) ##### :bug: Fixes - [#​5086](https://redirect.github.com/mochajs/mocha/pull/5086) fix: Add error handling for nonexistent file case with --file option ([**@​khoaHyh**](https://redirect.github.com/khoaHyh)) ### [`v10.5.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1050--2024-05-24) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.4.0...v10.5.0) ##### :tada: Enhancements - [#​5015](https://redirect.github.com/mochajs/mocha/pull/5015) feat: use \ and \ for browser progress indicator instead of \ ([**@​yourWaifu**](https://redirect.github.com/yourWaifu)) - [#​5143](https://redirect.github.com/mochajs/mocha/pull/5143) feat: allow using any 3.x chokidar dependencies ([**@​simhnna**](https://redirect.github.com/simhnna)) - [#​4835](https://redirect.github.com/mochajs/mocha/pull/4835) feat: add MOCHA_OPTIONS env variable ([**@​icholy**](https://redirect.github.com/icholy)) ##### :bug: Fixes - [#​5107](https://redirect.github.com/mochajs/mocha/pull/5107) fix: include stack in browser uncaught error reporting ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) ##### :nut_and_bolt: Other - [#​5110](https://redirect.github.com/mochajs/mocha/pull/5110) chore: switch two-column list styles to be opt-in ([**@​marjys**](https://redirect.github.com/marjys)) - [#​5135](https://redirect.github.com/mochajs/mocha/pull/5135) chore: fix some typos in comments ([**@​StevenMia**](https://redirect.github.com/StevenMia)) - [#​5130](https://redirect.github.com/mochajs/mocha/pull/5130) chore: rename 'master' to 'main' in docs and tooling ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) ### [`v10.4.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1040--2024-03-26) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.3.0...v10.4.0) ##### :tada: Enhancements - [#​4829](https://redirect.github.com/mochajs/mocha/pull/4829) feat: include `.cause` stacks in the error stack traces ([**@​voxpelli**](https://redirect.github.com/voxpelli)) - [#​4985](https://redirect.github.com/mochajs/mocha/pull/4985) feat: add file path to xunit reporter ([**@​bmish**](https://redirect.github.com/bmish)) ##### :bug: Fixes - [#​5074](https://redirect.github.com/mochajs/mocha/pull/5074) fix: harden error handling in `lib/cli/run.js` ([**@​stalet**](https://redirect.github.com/stalet)) ##### :nut_and_bolt: Other - [#​5077](https://redirect.github.com/mochajs/mocha/pull/5077) chore: add mtfoley/pr-compliance-action ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5060](https://redirect.github.com/mochajs/mocha/pull/5060) chore: migrate ESLint config to flat config ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5095](https://redirect.github.com/mochajs/mocha/pull/5095) chore: revert [#​5069](https://redirect.github.com/mochajs/mocha/pull/5069) to restore Netlify builds ([**@​voxpelli**](https://redirect.github.com/voxpelli)) - [#​5097](https://redirect.github.com/mochajs/mocha/pull/5097) docs: add sponsored to sponsorship link rels ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5093](https://redirect.github.com/mochajs/mocha/pull/5093) chore: add 'status: in triage' label to issue templates and docs ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5083](https://redirect.github.com/mochajs/mocha/pull/5083) docs: fix CHANGELOG.md headings to start with a root-level h1 ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5100](https://redirect.github.com/mochajs/mocha/pull/5100) chore: fix header generation and production build crashes ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5104](https://redirect.github.com/mochajs/mocha/pull/5104) chore: bump ESLint ecmaVersion to 2020 ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​5116](https://redirect.github.com/mochajs/mocha/pull/5116) fix: eleventy template builds crash with 'unexpected token at ": string, msg..."' ([**@​LcsK**](https://redirect.github.com/LcsK)) - [#​4869](https://redirect.github.com/mochajs/mocha/pull/4869) docs: fix documentation concerning glob expansion on UNIX ([**@​binki**](https://redirect.github.com/binki)) - [#​5122](https://redirect.github.com/mochajs/mocha/pull/5122) test: fix xunit integration test ([**@​voxpelli**](https://redirect.github.com/voxpelli)) - [#​5123](https://redirect.github.com/mochajs/mocha/pull/5123) chore: activate dependabot for workflows ([**@​voxpelli**](https://redirect.github.com/voxpelli)) - [#​5125](https://redirect.github.com/mochajs/mocha/pull/5125) build(deps): bump the github-actions group with 2 updates ([**@​dependabot**](https://redirect.github.com/dependabot)) ### [`v10.3.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1030--2024-02-08) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.2.0...v10.3.0) This is a stable release equivalent to [10.30.0-prerelease](#​1030-prerelease--2024-01-18). ### [`v10.2.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1020--2022-12-11) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.1.0...v10.2.0) #### :tada: Enhancements - [#​4945](https://redirect.github.com/mochajs/mocha/issues/4945): API: add possibility to decorate ESM name before import ([**@​j0tunn**](https://redirect.github.com/j0tunn)) #### :bug: Fixes - [#​4946](https://redirect.github.com/mochajs/mocha/issues/4946): Browser: color of failed test icon ([**@​kleisauke**](https://redirect.github.com/kleisauke)) #### :book: Documentation - [#​4944](https://redirect.github.com/mochajs/mocha/issues/4944): Remove duplicated header ([**@​PauloGoncalvesBH**](https://redirect.github.com/PauloGoncalvesBH)) ### [`v10.1.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1010--2022-10-16) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v10.0.0...v10.1.0) #### :tada: Enhancements - [#​4896](https://redirect.github.com/mochajs/mocha/issues/4896): Browser: add support for `prefers-color-scheme: dark` ([**@​greggman**](https://redirect.github.com/greggman)) #### :nut_and_bolt: Other - [#​4912](https://redirect.github.com/mochajs/mocha/issues/4912): Browser: increase contrast for replay buttons ([**@​JoshuaKGoldberg**](https://redirect.github.com/JoshuaKGoldberg)) - [#​4905](https://redirect.github.com/mochajs/mocha/issues/4905): Use standard `Promise.allSettled` instead of polyfill ([**@​outsideris**](https://redirect.github.com/outsideris)) - [#​4899](https://redirect.github.com/mochajs/mocha/issues/4899): Upgrade official GitHub actions to latest ([**@​ddzz**](https://redirect.github.com/ddzz)) - [#​4770](https://redirect.github.com/mochajs/mocha/issues/4770): Fix regex in function `clean`([**@​yetingli**](https://redirect.github.com/yetingli)) ### [`v10.0.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1000--2022-05-01) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.2.2...v10.0.0) #### :boom: Breaking Changes - [#​4845](https://redirect.github.com/mochajs/mocha/issues/4845): **Drop Node.js v12.x support** ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4848](https://redirect.github.com/mochajs/mocha/issues/4848): Drop Internet-Explorer-11 support ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4857](https://redirect.github.com/mochajs/mocha/issues/4857): Drop AMD/RequireJS support ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4866](https://redirect.github.com/mochajs/mocha/issues/4866): Drop Growl notification support ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4863](https://redirect.github.com/mochajs/mocha/issues/4863): Rename executable `bin/mocha` to `bin/mocha.js` ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4865](https://redirect.github.com/mochajs/mocha/issues/4865): `--ignore` option in Windows: upgrade Minimatch ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4861](https://redirect.github.com/mochajs/mocha/issues/4861): Remove deprecated `Runner` signature ([**@​juergba**](https://redirect.github.com/juergba)) #### :nut_and_bolt: Other - [#​4878](https://redirect.github.com/mochajs/mocha/issues/4878): Update production dependencies ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4876](https://redirect.github.com/mochajs/mocha/issues/4876): Add Node.js v18 to CI test matrix ([**@​outsideris**](https://redirect.github.com/outsideris)) - [#​4852](https://redirect.github.com/mochajs/mocha/issues/4852): Replace deprecated `String.prototype.substr()` ([**@​CommanderRoot**](https://redirect.github.com/CommanderRoot)) Also thanks to [**@​ea2305**](https://redirect.github.com/ea2305) and [**@​SukkaW**](https://redirect.github.com/SukkaW) for improvements to our documentation. ### [`v9.2.2`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#922--2022-03-11) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.2.1...v9.2.2) #### :bug: Fixes - [#​4842](https://redirect.github.com/mochajs/mocha/issues/4842): Loading of reporter throws wrong error ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4839](https://redirect.github.com/mochajs/mocha/issues/4839): `dry-run`: prevent potential call-stack crash ([**@​juergba**](https://redirect.github.com/juergba)) #### :nut_and_bolt: Other - [#​4843](https://redirect.github.com/mochajs/mocha/issues/4843): Update production dependencies ([**@​juergba**](https://redirect.github.com/juergba)) ### [`v9.2.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#921--2022-02-19) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.2.0...v9.2.1) #### :bug: Fixes - [#​4832](https://redirect.github.com/mochajs/mocha/issues/4832): Loading of config files throws wrong error ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4799](https://redirect.github.com/mochajs/mocha/issues/4799): Reporter: configurable `maxDiffSize` reporter-option ([**@​norla**](https://redirect.github.com/norla)) ### [`v9.2.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#920--2022-01-24) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.1.4...v9.2.0) #### :tada: Enhancements - [#​4813](https://redirect.github.com/mochajs/mocha/issues/4813): Parallel: assign each worker a worker-id ([**@​forty**](https://redirect.github.com/forty)) #### :nut_and_bolt: Other - [#​4818](https://redirect.github.com/mochajs/mocha/issues/4818): Update production dependencies ([**@​juergba**](https://redirect.github.com/juergba)) ### [`v9.1.4`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#914--2022-01-14) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.1.3...v9.1.4) #### :bug: Fixes - [#​4807](https://redirect.github.com/mochajs/mocha/issues/4807): `import` throws wrong error if loader is used ([**@​giltayar**](https://redirect.github.com/giltayar)) #### :nut_and_bolt: Other - [#​4777](https://redirect.github.com/mochajs/mocha/issues/4777): Add Node v17 to CI test matrix ([**@​outsideris**](https://redirect.github.com/outsideris)) ### [`v9.1.3`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#913--2021-10-15) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.1.2...v9.1.3) #### :bug: Fixes - [#​4769](https://redirect.github.com/mochajs/mocha/issues/4769): Browser: re-enable `bdd` ES6 style import ([**@​juergba**](https://redirect.github.com/juergba)) #### :nut_and_bolt: Other - [#​4764](https://redirect.github.com/mochajs/mocha/issues/4764): Revert deprecation of `EVENT_SUITE_ADD_*` events ([**@​beatfactor**](https://redirect.github.com/beatfactor)) ### [`v9.1.2`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#912--2021-09-25) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.1.1...v9.1.2) #### :bug: Fixes - [#​4746](https://redirect.github.com/mochajs/mocha/issues/4746): Browser: stop using all global vars in `browser-entry.js` ([**@​PaperStrike**](https://redirect.github.com/PaperStrike)) #### :nut_and_bolt: Other - [#​4754](https://redirect.github.com/mochajs/mocha/issues/4754): Remove dependency wide-align ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4736](https://redirect.github.com/mochajs/mocha/issues/4736): ESM: remove code for Node versions <10 ([**@​juergba**](https://redirect.github.com/juergba)) ### [`v9.1.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#911--2021-08-28) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.1.0...v9.1.1) #### :bug: Fixes - [#​4623](https://redirect.github.com/mochajs/mocha/issues/4623): `XUNIT` and `JSON` reporter crash in `parallel` mode ([**@​curtisman**](https://redirect.github.com/curtisman)) ### [`v9.1.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#910--2021-08-20) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.0.3...v9.1.0) #### :tada: Enhancements - [#​4716](https://redirect.github.com/mochajs/mocha/issues/4716): Add new option `--fail-zero` ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4691](https://redirect.github.com/mochajs/mocha/issues/4691): Add new option `--node-option` ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4607](https://redirect.github.com/mochajs/mocha/issues/4607): Add output option to `JSON` reporter ([**@​dorny**](https://redirect.github.com/dorny)) ### [`v9.0.3`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#903--2021-07-25) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.0.2...v9.0.3) #### :bug: Fixes - [#​4702](https://redirect.github.com/mochajs/mocha/issues/4702): Error rethrow from cwd-relative path while loading `.mocharc.js` ([**@​kirill-golovan**](https://redirect.github.com/kirill-golovan)) - [#​4688](https://redirect.github.com/mochajs/mocha/issues/4688): Usage of custom interface in parallel mode ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4687](https://redirect.github.com/mochajs/mocha/issues/4687): ESM: don't swallow `MODULE_NOT_FOUND` errors in case of `type:module` ([**@​giltayar**](https://redirect.github.com/giltayar)) ### [`v9.0.2`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#902--2021-07-03) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.0.1...v9.0.2) #### :bug: Fixes - [#​4668](https://redirect.github.com/mochajs/mocha/issues/4668): ESM: make `--require ` work with new `import`-first loading ([**@​giltayar**](https://redirect.github.com/giltayar)) #### :nut_and_bolt: Other - [#​4674](https://redirect.github.com/mochajs/mocha/issues/4674): Update production dependencies ([**@​juergba**](https://redirect.github.com/juergba)) ### [`v9.0.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#901--2021-06-18) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v9.0.0...v9.0.1) #### :nut_and_bolt: Other - [#​4657](https://redirect.github.com/mochajs/mocha/issues/4657): Browser: add separate bundle for modern browsers ([**@​juergba**](https://redirect.github.com/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**. - [#​4653](https://redirect.github.com/mochajs/mocha/issues/4653): ESM: proper version check in `hasStableEsmImplementation` ([**@​alexander-fenster**](https://redirect.github.com/alexander-fenster)) ### [`v9.0.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#900--2021-06-07) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.4.0...v9.0.0) #### :boom: Breaking Changes - [#​4633](https://redirect.github.com/mochajs/mocha/issues/4633): **Drop Node.js v10.x support** ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4635](https://redirect.github.com/mochajs/mocha/issues/4635): `import`-first loading of test files ([**@​giltayar**](https://redirect.github.com/giltayar)) **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](https://redirect.github.com/mochajs/mocha/issues/4636): Remove deprecated `utils.lookupFiles()` ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4638](https://redirect.github.com/mochajs/mocha/issues/4638): Limit the size of `actual`/`expected` for `diff` generation ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4389](https://redirect.github.com/mochajs/mocha/issues/4389): Refactoring: Consuming log-symbols alternate to code for win32 in reporters/base ([**@​MoonSupport**](https://redirect.github.com/MoonSupport)) #### :tada: Enhancements - [#​4640](https://redirect.github.com/mochajs/mocha/issues/4640): Add new option `--dry-run` ([**@​juergba**](https://redirect.github.com/juergba)) #### :bug: Fixes - [#​4128](https://redirect.github.com/mochajs/mocha/issues/4128): Fix: control stringification of error message ([**@​syeutyu**](https://redirect.github.com/syeutyu)) #### :nut_and_bolt: Other - [#​4646](https://redirect.github.com/mochajs/mocha/issues/4646): Deprecate `Runner(suite: Suite, delay: boolean)` signature ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4643](https://redirect.github.com/mochajs/mocha/issues/4643): Update production dependencies ([**@​juergba**](https://redirect.github.com/juergba)) ### [`v8.4.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#840--2021-05-07) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.3.2...v8.4.0) #### :tada: Enhancements - [#​4502](https://redirect.github.com/mochajs/mocha/issues/4502): CLI file parsing errors now have error codes ([**@​evaline-ju**](https://redirect.github.com/evaline-ju)) #### :bug: Fixes - [#​4614](https://redirect.github.com/mochajs/mocha/issues/4614): Watch: fix crash when reloading files ([**@​outsideris**](https://redirect.github.com/outsideris)) #### :book: Documentation - [#​4630](https://redirect.github.com/mochajs/mocha/issues/4630): Add `options.require` to Mocha constructor for `root hook` plugins on parallel runs ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4617](https://redirect.github.com/mochajs/mocha/issues/4617): Dynamically generating tests with `top-level await` and ESM test files ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4608](https://redirect.github.com/mochajs/mocha/issues/4608): Update default file extensions ([**@​outsideris**](https://redirect.github.com/outsideris)) Also thanks to [**@​outsideris**](https://redirect.github.com/outsideris) for various improvements on our GH actions workflows. ### [`v8.3.2`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#832--2021-03-12) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.3.1...v8.3.2) #### :bug: Fixes - [#​4599](https://redirect.github.com/mochajs/mocha/issues/4599): Fix regression in `require` interface ([**@​alexander-fenster**](https://redirect.github.com/alexander-fenster)) #### :book: Documentation - [#​4601](https://redirect.github.com/mochajs/mocha/issues/4601): Add build to GH actions run ([**@​christian-bromann**](https://redirect.github.com/christian-bromann)) - [#​4596](https://redirect.github.com/mochajs/mocha/issues/4596): Filter active sponsors/backers ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4225](https://redirect.github.com/mochajs/mocha/issues/4225): Update config file examples ([**@​pkuczynski**](https://redirect.github.com/pkuczynski)) ### [`v8.3.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#831--2021-03-06) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.3.0...v8.3.1) #### :bug: Fixes - [#​4577](https://redirect.github.com/mochajs/mocha/issues/4577): Browser: fix `EvalError` caused by regenerator-runtime ([**@​snoack**](https://redirect.github.com/snoack)) - [#​4574](https://redirect.github.com/mochajs/mocha/issues/4574): ESM: allow `import` from mocha in parallel mode ([**@​nicojs**](https://redirect.github.com/nicojs)) ### [`v8.3.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#830--2021-02-11) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.2.1...v8.3.0) #### :tada: Enhancements - [#​4506](https://redirect.github.com/mochajs/mocha/issues/4506): Add error code for test timeout errors ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4112](https://redirect.github.com/mochajs/mocha/issues/4112): Add BigInt support to stringify util function ([**@​JosejeSinohui**](https://redirect.github.com/JosejeSinohui)) #### :bug: Fixes - [#​4557](https://redirect.github.com/mochajs/mocha/issues/4557): Add file location when SyntaxError happens in ESM ([**@​giltayar**](https://redirect.github.com/giltayar)) - [#​4521](https://redirect.github.com/mochajs/mocha/issues/4521): Fix `require` error when bundling Mocha with Webpack ([**@​devhazem**](https://redirect.github.com/devhazem)) #### :book: Documentation - [#​4507](https://redirect.github.com/mochajs/mocha/issues/4507): Add support for typescript-style docstrings ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4503](https://redirect.github.com/mochajs/mocha/issues/4503): Add GH Actions workflow status badge ([**@​outsideris**](https://redirect.github.com/outsideris)) - [#​4494](https://redirect.github.com/mochajs/mocha/issues/4494): Add example of generating tests dynamically with a closure ([**@​maxwellgerber**](https://redirect.github.com/maxwellgerber)) #### :nut_and_bolt: Other - [#​4556](https://redirect.github.com/mochajs/mocha/issues/4556): Upgrade all dependencies to latest stable ([**@​AviVahl**](https://redirect.github.com/AviVahl)) - [#​4543](https://redirect.github.com/mochajs/mocha/issues/4543): Update dependencies yargs and yargs-parser ([**@​juergba**](https://redirect.github.com/juergba)) Also thanks to [**@​outsideris**](https://redirect.github.com/outsideris) and [**@​HyunSangHan**](https://redirect.github.com/HyunSangHan) for various fixes to our website and documentation. ### [`v8.2.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#821--2020-11-02) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.2.0...v8.2.1) Fixed stuff. #### :bug: Fixes - [#​4489](https://redirect.github.com/mochajs/mocha/issues/4489): Fix problematic handling of otherwise-unhandled `Promise` rejections and erroneous "`done()` called twice" errors ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4496](https://redirect.github.com/mochajs/mocha/issues/4496): Avoid `MaxListenersExceededWarning` in watch mode ([**@​boneskull**](https://redirect.github.com/boneskull)) Also thanks to [**@​akeating**](https://redirect.github.com/akeating) for a documentation fix! ### [`v8.2.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#820--2020-10-16) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.1.3...v8.2.0) The major feature added in v8.2.0 is addition of support for [*global fixtures*](https://mochajs.org/#global-fixtures). While Mocha has always had the ability to run setup and teardown via a hook (e.g., a `before()` at the top level of a test file) when running tests in serial, Mocha v8.0.0 added support for parallel runs. Parallel runs are *incompatible* with this strategy; e.g., a top-level `before()` would only run for the file in which it was defined. With [global fixtures](https://mochajs.org/#global-fixtures), Mocha can now perform user-defined setup and teardown *regardless* of mode, and these fixtures are guaranteed to run *once and only once*. This holds for parallel mode, serial mode, and even "watch" mode (the teardown will run once you hit Ctrl-C, just before Mocha finally exits). Tasks such as starting and stopping servers are well-suited to global fixtures, but not sharing resources--global fixtures do *not* share context with your test files (but they do share context with each other). Here's a short example of usage: ```js // fixtures.js // can be async or not exports.mochaGlobalSetup = async function() { this.server = await startSomeServer({port: process.env.TEST_PORT}); console.log(`server running on port ${this.server.port}`); }; exports.mochaGlobalTeardown = async function() { // the context (`this`) is shared, but not with the test files await this.server.stop(); console.log(`server on port ${this.server.port} stopped`); }; // this file can contain root hook plugins as well! // exports.mochaHooks = { ... } ``` Fixtures are loaded with `--require`, e.g., `mocha --require fixtures.js`. For detailed information, please see the [documentation](https://mochajs.org/#global-fixtures) and this handy-dandy [flowchart](https://mochajs.org/#test-fixture-decision-tree-wizard-thing) to help understand the differences between hooks, root hook plugins, and global fixtures (and when you should use each). #### :tada: Enhancements - [#​4308](https://redirect.github.com/mochajs/mocha/issues/4308): Support run-once [global setup & teardown fixtures](https://mochajs.org/#global-fixtures) ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4442](https://redirect.github.com/mochajs/mocha/issues/4442): Multi-part extensions (e.g., `test.js`) now usable with `--extension` option ([**@​jordanstephens**](https://redirect.github.com/jordanstephens)) - [#​4472](https://redirect.github.com/mochajs/mocha/issues/4472): Leading dots (e.g., `.js`, `.test.js`) now usable with `--extension` option ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4434](https://redirect.github.com/mochajs/mocha/issues/4434): Output of `json` reporter now contains `speed` ("fast"/"medium"/"slow") property ([**@​wwhurin**](https://redirect.github.com/wwhurin)) - [#​4464](https://redirect.github.com/mochajs/mocha/issues/4464): Errors thrown by serializer in parallel mode now have error codes ([**@​evaline-ju**](https://redirect.github.com/evaline-ju)) *For implementors of custom reporters:* - [#​4409](https://redirect.github.com/mochajs/mocha/issues/4409): Parallel mode and custom reporter improvements ([**@​boneskull**](https://redirect.github.com/boneskull)): - Support custom worker-process-only reporters (`Runner.prototype.workerReporter()`); reporters should subclass `ParallelBufferedReporter` in `mocha/lib/nodejs/reporters/parallel-buffered` - Allow opt-in of object reference matching for "sufficiently advanced" custom reporters (`Runner.prototype.linkPartialObjects()`); use if strict object equality is needed when consuming `Runner` event data - Enable detection of parallel mode (`Runner.prototype.isParallelMode()`) #### :bug: Fixes - [#​4476](https://redirect.github.com/mochajs/mocha/issues/4476): Workaround for profoundly bizarre issue affecting `npm` v6.x causing some of Mocha's deps to be installed when `mocha` is present in a package's `devDependencies` and `npm install --production` is run the package's working copy ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4465](https://redirect.github.com/mochajs/mocha/issues/4465): Worker processes guaranteed (as opposed to "very likely") to exit before Mocha does; fixes a problem when using `nyc` with Mocha in parallel mode ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4419](https://redirect.github.com/mochajs/mocha/issues/4419): Restore `lookupFiles()` in `mocha/lib/utils`, which was broken/missing in Mocha v8.1.0; it now prints a deprecation warning (use `const {lookupFiles} = require('mocha/lib/cli')` instead) ([**@​boneskull**](https://redirect.github.com/boneskull)) Thanks to [**@​AviVahl**](https://redirect.github.com/AviVahl), [**@​donghoon-song**](https://redirect.github.com/donghoon-song), [**@​ValeriaVG**](https://redirect.github.com/ValeriaVG), [**@​znarf**](https://redirect.github.com/znarf), [**@​sujin-park**](https://redirect.github.com/sujin-park), and [**@​majecty**](https://redirect.github.com/majecty) for other helpful contributions! ### [`v8.1.3`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#813--2020-08-28) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.1.2...v8.1.3) #### :bug: Fixes - [#​4425](https://redirect.github.com/mochajs/mocha/issues/4425): Restore `Mocha.utils.lookupFiles()` and Webpack compatibility (both broken since v8.1.0); `Mocha.utils.lookupFiles()` is now **deprecated** and will be removed in the next major revision of Mocha; use `require('mocha/lib/cli').lookupFiles` instead ([**@​boneskull**](https://redirect.github.com/boneskull)) ### [`v8.1.2`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#812--2020-08-25) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.1.1...v8.1.2) #### :bug: Fixes - [#​4418](https://redirect.github.com/mochajs/mocha/issues/4418): Fix command-line flag incompatibility in forthcoming Node.js v14.9.0 ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4401](https://redirect.github.com/mochajs/mocha/issues/4401): Fix missing global variable in browser ([**@​irrationnelle**](https://redirect.github.com/irrationnelle)) #### :lock: Security Fixes - [#​4396](https://redirect.github.com/mochajs/mocha/issues/4396): Update many dependencies ([**@​GChuf**](https://redirect.github.com/GChuf)) #### :book: Documentation - Various fixes by [**@​sujin-park**](https://redirect.github.com/sujin-park), [**@​wwhurin**](https://redirect.github.com/wwhurin) & [**@​Donghoon759**](https://redirect.github.com/Donghoon759) ### [`v8.1.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#811--2020-08-04) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.1.0...v8.1.1) #### :bug: Fixes - [#​4394](https://redirect.github.com/mochajs/mocha/issues/4394): Fix regression wherein certain reporters did not correctly detect terminal width ([**@​boneskull**](https://redirect.github.com/boneskull)) ### [`v8.1.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#810--2020-07-30) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.0.1...v8.1.0) In this release, Mocha now builds its browser bundle with Rollup and Babel, which will provide the project's codebase more flexibility and consistency. While we've been diligent about backwards compatibility, it's *possible* consumers of the browser bundle will encounter differences (other than an increase in the bundle size). If you *do* encounter an issue with the build, please [report it here](https://redirect.github.com/mochajs/mocha/issues/new?labels=unconfirmed-bug\&template=bug_report.md\&title=). This release **does not** drop support for IE11. Other community contributions came from [**@​Devjeel**](https://redirect.github.com/Devjeel), [**@​Harsha509**](https://redirect.github.com/Harsha509) and [**@​sharath2106**](https://redirect.github.com/sharath2106). *Thank you* to everyone who contributed to this release! > Do you read Korean? See [this guide to running parallel tests in Mocha](https://blog.outsider.ne.kr/1489), translated by our maintainer, [**@​outsideris**](https://redirect.github.com/outsideris). #### :tada: Enhancements - [#​4287](https://redirect.github.com/mochajs/mocha/issues/4287): Use background colors with inline diffs for better visual distinction ([**@​michael-brade**](https://redirect.github.com/michael-brade)) #### :bug: Fixes - [#​4328](https://redirect.github.com/mochajs/mocha/issues/4328): Fix "watch" mode when Mocha run in parallel ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4382](https://redirect.github.com/mochajs/mocha/issues/4382): Fix root hook execution in "watch" mode ([**@​indieisaconcept**](https://redirect.github.com/indieisaconcept)) - [#​4383](https://redirect.github.com/mochajs/mocha/issues/4383): Consistent auto-generated hook titles ([**@​cspotcode**](https://redirect.github.com/cspotcode)) - [#​4359](https://redirect.github.com/mochajs/mocha/issues/4359): Better errors when running `mocha init` ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4341](https://redirect.github.com/mochajs/mocha/issues/4341): Fix weirdness when using `delay` option in browser ([**@​craigtaub**](https://redirect.github.com/craigtaub)) #### :lock: Security Fixes - [#​4378](https://redirect.github.com/mochajs/mocha/issues/4378), [#​4333](https://redirect.github.com/mochajs/mocha/issues/4333): Update [javascript-serialize](https://npm.im/javascript-serialize) ([**@​martinoppitz**](https://redirect.github.com/martinoppitz), [**@​wnghdcjfe**](https://redirect.github.com/wnghdcjfe)) - [#​4354](https://redirect.github.com/mochajs/mocha/issues/4354): Update [yargs-unparser](https://npm.im/yargs-unparser) ([**@​martinoppitz**](https://redirect.github.com/martinoppitz)) #### :book: Documentation & Website - [#​4173](https://redirect.github.com/mochajs/mocha/issues/4173): Document how to use `--enable-source-maps` with Mocha ([**@​bcoe**](https://redirect.github.com/bcoe)) - [#​4343](https://redirect.github.com/mochajs/mocha/issues/4343): Clean up some API docs ([**@​craigtaub**](https://redirect.github.com/craigtaub)) - [#​4318](https://redirect.github.com/mochajs/mocha/issues/4318): Sponsor images are now self-hosted ([**@​Munter**](https://redirect.github.com/Munter)) #### :nut_and_bolt: Other - [#​4293](https://redirect.github.com/mochajs/mocha/issues/4293): Use Rollup and Babel in build pipeline; add source map to published files ([**@​Munter**](https://redirect.github.com/Munter)) ### [`v8.0.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#801--2020-06-10) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v8.0.0...v8.0.1) The obligatory patch after a major. #### :bug: Fixes - [#​4328](https://redirect.github.com/mochajs/mocha/issues/4328): Fix `--parallel` when combined with `--watch` ([**@​boneskull**](https://redirect.github.com/boneskull)) ### [`v8.0.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#800--2020-06-10) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v7.2.0...v8.0.0) In this major release, Mocha adds the ability to *run tests in parallel*. Better late than never! Please note the **breaking changes** detailed below. Let's welcome [**@​giltayar**](https://redirect.github.com/giltayar) and [**@​nicojs**](https://redirect.github.com/nicojs) to the maintenance team! #### :boom: Breaking Changes - [#​4164](https://redirect.github.com/mochajs/mocha/issues/4164): **Mocha v8.0.0 now requires Node.js v10.12.0 or newer.** Mocha no longer supports the Node.js v8.x line ("Carbon"), which entered End-of-Life at the end of 2019 ([**@​UlisesGascon**](https://redirect.github.com/UlisesGascon)) - [#​4175](https://redirect.github.com/mochajs/mocha/issues/4175): Having been deprecated with a warning since v7.0.0, **`mocha.opts` is no longer supported** ([**@​juergba**](https://redirect.github.com/juergba)) :sparkles: **WORKAROUND:** Replace `mocha.opts` with a [configuration file](https://mochajs.org/#configuring-mocha-nodejs). - [#​4260](https://redirect.github.com/mochajs/mocha/issues/4260): Remove `enableTimeout()` (`this.enableTimeout()`) from the context object ([**@​craigtaub**](https://redirect.github.com/craigtaub)) :sparkles: **WORKAROUND:** Replace usage of `this.enableTimeout(false)` in your tests with `this.timeout(0)`. - [#​4315](https://redirect.github.com/mochajs/mocha/issues/4315): The `spec` option no longer supports a comma-delimited list of files ([**@​juergba**](https://redirect.github.com/juergba)) :sparkles: **WORKAROUND**: Use an array instead (e.g., `"spec": "foo.js,bar.js"` becomes `"spec": ["foo.js", "bar.js"]`). - [#​4309](https://redirect.github.com/mochajs/mocha/issues/4309): Drop support for Node.js v13.x line, which is now End-of-Life ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4282](https://redirect.github.com/mochajs/mocha/issues/4282): `--forbid-only` will throw an error even if exclusive tests are avoided via `--grep` or other means ([**@​arvidOtt**](https://redirect.github.com/arvidOtt)) - [#​4223](https://redirect.github.com/mochajs/mocha/issues/4223): The context object's `skip()` (`this.skip()`) in a "before all" (`before()`) hook will no longer execute subsequent sibling hooks, in addition to hooks in child suites ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4178](https://redirect.github.com/mochajs/mocha/issues/4178): Remove previously soft-deprecated APIs ([**@​wnghdcjfe**](https://redirect.github.com/wnghdcjfe)): - `Mocha.prototype.ignoreLeaks()` - `Mocha.prototype.useColors()` - `Mocha.prototype.useInlineDiffs()` - `Mocha.prototype.hideDiff()` #### :tada: Enhancements - [#​4245](https://redirect.github.com/mochajs/mocha/issues/4245): Add ability to run tests in parallel for Node.js (see [docs](https://mochajs.org/#parallel-tests)) ([**@​boneskull**](https://redirect.github.com/boneskull)) :exclamation: See also [#​4244](https://redirect.github.com/mochajs/mocha/issues/4244); [Root Hook Plugins (docs)](https://mochajs.org/#root-hook-plugins) -- *root hooks must be defined via Root Hook Plugins to work in parallel mode* - [#​4304](https://redirect.github.com/mochajs/mocha/issues/4304): `--require` now works with ES modules ([**@​JacobLey**](https://redirect.github.com/JacobLey)) - [#​4299](https://redirect.github.com/mochajs/mocha/issues/4299): In some circumstances, Mocha can run ES modules under Node.js v10 -- *use at your own risk!* ([**@​giltayar**](https://redirect.github.com/giltayar)) #### :book: Documentation - [#​4246](https://redirect.github.com/mochajs/mocha/issues/4246): Add documentation for parallel mode and Root Hook plugins ([**@​boneskull**](https://redirect.github.com/boneskull)) #### :nut_and_bolt: Other - [#​4200](https://redirect.github.com/mochajs/mocha/issues/4200): Drop mkdirp and replace it with fs.mkdirSync ([**@​HyunSangHan**](https://redirect.github.com/HyunSangHan)) #### :bug: Fixes (All bug fixes in Mocha v8.0.0 are also breaking changes, and are listed above) ### [`v7.2.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#720--2020-05-22) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v7.1.2...v7.2.0) #### :tada: Enhancements - [#​4234](https://redirect.github.com/mochajs/mocha/issues/4234): Add ability to run tests in a mocha instance multiple times ([**@​nicojs**](https://redirect.github.com/nicojs)) - [#​4219](https://redirect.github.com/mochajs/mocha/issues/4219): Exposing filename in JSON, doc, and json-stream reporters ([**@​Daniel0113**](https://redirect.github.com/Daniel0113)) - [#​4244](https://redirect.github.com/mochajs/mocha/issues/4244): Add Root Hook Plugins ([**@​boneskull**](https://redirect.github.com/boneskull)) #### :bug: Fixes - [#​4258](https://redirect.github.com/mochajs/mocha/issues/4258): Fix missing dot in name of configuration file ([**@​sonicdoe**](https://redirect.github.com/sonicdoe)) - [#​4194](https://redirect.github.com/mochajs/mocha/issues/4194): Check if module.paths really exists ([**@​ematipico**](https://redirect.github.com/ematipico)) - [#​4256](https://redirect.github.com/mochajs/mocha/issues/4256): `--forbid-only` does not recognize `it.only` when `before` crashes ([**@​arvidOtt**](https://redirect.github.com/arvidOtt)) - [#​4152](https://redirect.github.com/mochajs/mocha/issues/4152): Bug with multiple async done() calls ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4275](https://redirect.github.com/mochajs/mocha/issues/4275): Improper warnings for invalid reporters ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4288](https://redirect.github.com/mochajs/mocha/issues/4288): Broken hook.spec.js test for IE11 ([**@​boneskull**](https://redirect.github.com/boneskull)) #### :book: Documentation - [#​4081](https://redirect.github.com/mochajs/mocha/issues/4081): Insufficient white space for API docs in view on mobile ([**@​HyunSangHan**](https://redirect.github.com/HyunSangHan)) - [#​4255](https://redirect.github.com/mochajs/mocha/issues/4255): Update mocha-docdash for UI fixes on API docs ([**@​craigtaub**](https://redirect.github.com/craigtaub)) - [#​4235](https://redirect.github.com/mochajs/mocha/issues/4235): Enable emoji on website; enable normal ul elements ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4272](https://redirect.github.com/mochajs/mocha/issues/4272): Fetch sponsors at build time, show ALL non-skeevy sponsors ([**@​boneskull**](https://redirect.github.com/boneskull)) #### :nut_and_bolt: Other - [#​4249](https://redirect.github.com/mochajs/mocha/issues/4249): Refactoring improving encapsulation ([**@​arvidOtt**](https://redirect.github.com/arvidOtt)) - [#​4242](https://redirect.github.com/mochajs/mocha/issues/4242): CI add job names, add Node.js v14 to matrix ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4237](https://redirect.github.com/mochajs/mocha/issues/4237): Refactor validatePlugins to throw coded errors ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4236](https://redirect.github.com/mochajs/mocha/issues/4236): Better debug output ([**@​boneskull**](https://redirect.github.com/boneskull)) ### [`v7.1.2`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#712--2020-04-26) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v7.1.1...v7.1.2) #### :nut_and_bolt: Other - [#​4251](https://redirect.github.com/mochajs/mocha/issues/4251): Prevent karma-mocha from stalling ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4222](https://redirect.github.com/mochajs/mocha/issues/4222): Update dependency mkdirp to v0.5.5 ([**@​outsideris**](https://redirect.github.com/outsideris)) #### :book: Documentation - [#​4208](https://redirect.github.com/mochajs/mocha/issues/4208): Add Wallaby logo to site ([**@​boneskull**](https://redirect.github.com/boneskull)) ### [`v7.1.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#711--2020-03-18) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v7.1.0...v7.1.1) #### :lock: Security Fixes - [#​4204](https://redirect.github.com/mochajs/mocha/issues/4204): Update dependencies mkdirp, yargs-parser and yargs ([**@​juergba**](https://redirect.github.com/juergba)) #### :bug: Fixes - [#​3660](https://redirect.github.com/mochajs/mocha/issues/3660): Fix `runner` listening to `start` and `end` events ([**@​juergba**](https://redirect.github.com/juergba)) #### :book: Documentation - [#​4190](https://redirect.github.com/mochajs/mocha/issues/4190): Show Netlify badge on footer ([**@​outsideris**](https://redirect.github.com/outsideris)) ### [`v7.1.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#710--2020-02-26) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v7.0.1...v7.1.0) #### :tada: Enhancements [#​4038](https://redirect.github.com/mochajs/mocha/issues/4038): Add Node.js native ESM support ([**@​giltayar**](https://redirect.github.com/giltayar)) Mocha supports writing your test files as ES modules: - Node.js only v12.11.0 and above - Node.js below v13.2.0, you must set `--experimental-modules` option - current limitations: please check our [documentation](https://mochajs.org/#nodejs-native-esm-support) - for programmatic usage: see [API: loadFilesAsync()](https://mochajs.org/api/mocha#loadFilesAsync) **Note:** Node.JS native [ECMAScript Modules](https://nodejs.org/api/esm.html) implementation has status: **Stability: 1 - Experimental** #### :bug: Fixes - [#​4181](https://redirect.github.com/mochajs/mocha/issues/4181): Programmatic API cannot access retried test objects ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4174](https://redirect.github.com/mochajs/mocha/issues/4174): Browser: fix `allowUncaught` option ([**@​juergba**](https://redirect.github.com/juergba)) #### :book: Documentation - [#​4058](https://redirect.github.com/mochajs/mocha/issues/4058): Manage author list in AUTHORS instead of `package.json` ([**@​outsideris**](https://redirect.github.com/outsideris)) #### :nut_and_bolt: Other - [#​4138](https://redirect.github.com/mochajs/mocha/issues/4138): Upgrade ESLint v6.8 ([**@​kaicataldo**](https://redirect.github.com/kaicataldo)) ### [`v7.0.1`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#701--2020-01-25) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v7.0.0...v7.0.1) #### :bug: Fixes - [#​4165](https://redirect.github.com/mochajs/mocha/issues/4165): Fix exception when skipping tests programmatically ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4153](https://redirect.github.com/mochajs/mocha/issues/4153): Restore backwards compatibility for `reporterOptions` ([**@​holm**](https://redirect.github.com/holm)) - [#​4150](https://redirect.github.com/mochajs/mocha/issues/4150): Fix recovery of an open test upon uncaught exception ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4147](https://redirect.github.com/mochajs/mocha/issues/4147): Fix regression of leaking uncaught exception handler ([**@​juergba**](https://redirect.github.com/juergba)) #### :book: Documentation - [#​4146](https://redirect.github.com/mochajs/mocha/issues/4146): Update copyright & trademark notices per OJSF ([**@​boneskull**](https://redirect.github.com/boneskull)) - [#​4140](https://redirect.github.com/mochajs/mocha/issues/4140): Fix broken links ([**@​KyoungWan**](https://redirect.github.com/KyoungWan)) #### :nut_and_bolt: Other - [#​4133](https://redirect.github.com/mochajs/mocha/issues/4133): Print more descriptive error message ([**@​Zirak**](https://redirect.github.com/Zirak)) ### [`v7.0.0`](https://redirect.github.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#700--2020-01-05) [Compare Source](https://redirect.github.com/mochajs/mocha/compare/v6.2.3...v7.0.0) #### :boom: Breaking Changes - [#​3885](https://redirect.github.com/mochajs/mocha/issues/3885): **Drop Node.js v6.x support** ([**@​mojosoeun**](https://redirect.github.com/mojosoeun)) - [#​3890](https://redirect.github.com/mochajs/mocha/issues/3890): Remove Node.js debug-related flags `--debug`/`--debug-brk` and deprecate `debug` argument ([**@​juergba**](https://redirect.github.com/juergba)) - [#​3962](https://redirect.github.com/mochajs/mocha/issues/3962): Changes to command-line options ([**@​ParkSB**](https://redirect.github.com/ParkSB)): - `--list-interfaces` replaces `--interfaces` - `--list-reporters` replaces `--reporters` - Hook pattern of `this.skip()` ([**@​juergba**](https://redirect.github.com/juergba)): - [#​3859](https://redirect.github.com/mochajs/mocha/issues/3859): When conditionally skipping in a `it` test, related `afterEach` hooks are now executed - [#​3741](https://redirect.github.com/mochajs/mocha/issues/3741): When conditionally skipping in a `beforeEach` hook, subsequent inner `beforeEach` hooks are now skipped and related `afterEach` hooks are executed - [#​4136](https://redirect.github.com/mochajs/mocha/issues/4136): Disallow `this.skip()` within `after` hooks - [#​3967](https://redirect.github.com/mochajs/mocha/issues/3967): Remove deprecated `getOptions()` and `lib/cli/options.js` ([**@​juergba**](https://redirect.github.com/juergba)) - [#​4083](https://redirect.github.com/mochajs/moc

Configuration

๐Ÿ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

๐Ÿšฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.

โ™ป Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

๐Ÿ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.