Skip to content

Upgrade mocha: 8.3.2 → 9.1.2 (major)

Depfu Bot requested to merge depfu/update/yarn/mocha-9.1.2 into trunk

Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.

What changed?

️ mocha (8.3.2 → 9.1.2) · Repo · Changelog
Release Notes

9.1.2

9.1.2 / 2021-09-25

Please also note our announcements.

🐛 Fixes

🔩 Other

9.1.1

9.1.1 / 2021-08-28

Please also note our announcements.

🐛 Fixes

9.1.0

9.1.0 / 2021-08-20

🎉 Enhancements

9.0.3

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)

9.0.2

9.0.2 / 2021-07-03

🐛 Fixes

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

🔩 Other

9.0.1

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.

9.0.0

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

8.4.0

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.

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 64 commits:


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

Merge request reports