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.
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)
Coverage remained the same at 93.333% when pulling 42450b0d44a9ec663fa8bb56fd9b381e6cda80fa on depfu/update/npm/mocha-9.0.0 into 60db110f7f2237edb74a7658605fd1b67003955b on master.
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.0 → ^9.0.0) · Repo · Changelog
Release Notes
9.0.0
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 12 commits:
Release v9.0.0
update CHANGELOG for v9.0.0 [ci skip]
Update production dependencies (#4643)
Add new option "--dry-run" (#4640)
Deprecate "Runner(suite: Suite, delay: boolean)" (#4646)
Limit the size of 'actual'/'expected' before generating diff (#4638)
Import-first loading of test files (#4635)
Fix: control stringification of error message (#4128)
Remove deprecated "utils.lookupFiles()" (#4636)
GH actions: delete old workflow runs (#4637) [ci skip]
Consume log-symbols alternate to code for win32 in reporters/base (#4389)
Drop support of Node v10 (#4633)
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