Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

[Snyk] Security upgrade mocha from 8.4.0 to 9.1.2 #1042

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"lodash": "^4.17.21",
"meow": "^9.0.0",
"merge-deep": "^3.0.3",
"mocha": "^8.3.2",
"mocha": "^9.1.2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are the release notes for the breaking changes in mocha 9:

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)

"mockery": "^2.1.0",
"mustache": "^4.2.0",
"npm": "^7.12.0",
Expand Down