Skip to content

Commit f649e9b

Browse files
committed
update jest
1 parent eec5a94 commit f649e9b

File tree

4 files changed

+10963
-7610
lines changed

4 files changed

+10963
-7610
lines changed

jest_js.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// For a detailed explanation regarding each configuration property, visit:
22
// https://jestjs.io/docs/en/configuration.html
33

4-
module.exports = {
4+
const config = {
55
testEnvironment: "node",
66
testRegex: ".*_test\\.js$",
77
moduleFileExtensions: ["js", "json", "jsx", "node", "mjs"]
88
};
9+
10+
module.exports = config;

jest_mjs.config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
// For a detailed explanation regarding each configuration property, visit:
2-
// https://jestjs.io/docs/en/configuration.html
1+
/** @type {import('jest').Config} */
32

4-
module.exports = {
3+
const config = {
54
testEnvironment: "node",
65
testRegex: ".*_test\\.mjs$",
76
transform: {
8-
".*\\.mjs$": "babel-jest"
7+
"\\.mjs$": "babel-jest"
98
},
109
transformIgnorePatterns: ["/node_modules/"],
1110
moduleFileExtensions: ["js", "json", "jsx", "node", "mjs"]
1211
};
12+
13+
module.exports = config;

0 commit comments

Comments
 (0)