Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit 37b66dc

Browse files
committed
Updated jest to 28.1.1
1 parent 458e665 commit 37b66dc

File tree

4 files changed

+980
-1049
lines changed

4 files changed

+980
-1049
lines changed

config/jest/cssTransform.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66
module.exports = {
77
process() {
8-
return 'module.exports = {};';
8+
return {
9+
code: 'module.exports = {};',
10+
};
911
},
1012
getCacheKey() {
1113
// The output is always the same.

config/jest/fileTransform.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ module.exports = {
3535
};`;
3636
}
3737

38-
return `module.exports = ${assetFilename};`;
38+
return {
39+
code: `module.exports = ${assetFilename};`,
40+
};
3941
},
4042
};

package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@testing-library/jest-dom": "5.16.2",
2929
"@testing-library/react": "12.1.5",
3030
"@tldraw/vec": "1.4.3",
31-
"@types/jest": "27.4.0",
31+
"@types/jest": "28.1.1",
3232
"@types/lodash": "4.14.182",
3333
"@types/lodash.throttle": "4.1.7",
3434
"@types/pako": "2.0.0",
@@ -39,7 +39,7 @@
3939
"@typescript-eslint/eslint-plugin": "^4.5.0",
4040
"@typescript-eslint/parser": "^4.5.0",
4141
"babel-eslint": "^10.1.0",
42-
"babel-jest": "^26.6.0",
42+
"babel-jest": "28.1.1",
4343
"babel-loader": "8.1.0",
4444
"babel-plugin-named-asset-import": "^0.3.7",
4545
"babel-preset-react-app": "^10.0.0",
@@ -70,10 +70,11 @@
7070
"idb-keyval": "6.0.3",
7171
"identity-obj-proxy": "3.0.0",
7272
"image-blob-reduce": "3.0.1",
73-
"jest": "26.6.0",
73+
"jest": "28.1.1",
7474
"jest-circus": "28.1.1",
75-
"jest-resolve": "26.6.0",
76-
"jest-watch-typeahead": "0.6.1",
75+
"jest-environment-jsdom": "28.1.1",
76+
"jest-resolve": "28.1.1",
77+
"jest-watch-typeahead": "2.2.2",
7778
"jotai": "1.6.4",
7879
"lodash.throttle": "4.1.1",
7980
"mini-css-extract-plugin": "0.11.3",

0 commit comments

Comments
 (0)