Skip to content

Commit cc3d39c

Browse files
committed
chore: update jest to v29
1 parent ec3c968 commit cc3d39c

File tree

3 files changed

+2311
-1893
lines changed

3 files changed

+2311
-1893
lines changed

jest.config.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@ module.exports = {
55
testTimeout: 60000,
66
testEnvironment: 'node',
77
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/node_modules/'],
8-
globals: {
9-
'ts-jest': {
10-
diagnostics: false,
11-
},
8+
transform: {
9+
'^.+\\.tsx?$': ['ts-jest', { diagnostics: false }],
1210
},
1311
moduleNameMapper: process.env.WEBPACK4
1412
? {

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"@intlify/vue-i18n-loader": "^3.0.0",
5656
"@types/estree": "^0.0.45",
5757
"@types/hash-sum": "^1.0.0",
58-
"@types/jest": "^26.0.13",
58+
"@types/jest": "^29.5.0",
5959
"@types/jsdom": "^16.2.13",
6060
"@types/mini-css-extract-plugin": "^0.9.1",
6161
"@types/webpack-merge": "^4.1.5",
@@ -66,7 +66,7 @@
6666
"file-loader": "^6.1.0",
6767
"html-webpack-plugin": "^4.5.0",
6868
"html-webpack-plugin-v5": "npm:html-webpack-plugin@^5.3.2",
69-
"jest": "^26.4.1",
69+
"jest": "^29.5.0",
7070
"jsdom": "^16.4.0",
7171
"lint-staged": "^10.3.0",
7272
"markdown-loader": "^6.0.0",
@@ -83,7 +83,7 @@
8383
"stylus": "^0.54.7",
8484
"stylus-loader": "^4.1.1",
8585
"sugarss": "^3.0.1",
86-
"ts-jest": "^26.2.0",
86+
"ts-jest": "^29.1.0",
8787
"ts-loader": "^8.0.6",
8888
"ts-loader-v9": "npm:ts-loader@^9.2.4",
8989
"typescript": "^4.4.3",

0 commit comments

Comments
 (0)