-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update js dependencies, move to jest for testing (#5821)
* update js dependencies, move to jest for testing This commit updates the js dependencies to the latest versions and moves from mocha to jest for testing. This is consistent with the setup we use in LiveView. * run npm tests on node 20
- Loading branch information
Showing
11 changed files
with
8,473 additions
and
13,566 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* For a detailed explanation regarding each configuration property, visit: | ||
* https://jestjs.io/docs/configuration | ||
*/ | ||
|
||
module.exports = { | ||
// Automatically clear mock calls and instances between every test | ||
clearMocks: true, | ||
|
||
// Indicates which provider should be used to instrument code for coverage | ||
coverageProvider: "v8", | ||
|
||
// The paths to modules that run some code to configure or set up the testing environment before each test | ||
setupFiles: [ | ||
// "<rootDir>/setupTests.js" | ||
], | ||
|
||
// The test environment that will be used for testing | ||
testEnvironment: "jest-environment-jsdom-global", | ||
|
||
testEnvironmentOptions: { | ||
url: "https://example.com" | ||
}, | ||
|
||
// The regexp pattern or array of patterns that Jest uses to detect test files | ||
testRegex: "/test/.*_test\\.js$", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.