Skip to content

Commit c21a2b6

Browse files
Copilothsluoyz
andcommitted
Upgrade Jest and ts-jest to support TypeScript 5.x
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
1 parent 59efbbd commit c21a2b6

File tree

3 files changed

+895
-952
lines changed

3 files changed

+895
-952
lines changed

jestconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"transform": {
33
"^.+\\.(t|j)sx?$": "ts-jest"
44
},
5+
"testEnvironment": "jsdom",
56
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
67
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
78
"coveragePathIgnorePatterns": [

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"devDependencies": {
2929
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
3030
"@types/express": "4.17.0",
31-
"@types/jest": "^26.0.23",
31+
"@types/jest": "^29.0.0",
3232
"@types/js-cookie": "^2.2.6",
3333
"@typescript-eslint/eslint-plugin": "^4.0.0",
3434
"@typescript-eslint/parser": "^3.2.0",
@@ -37,11 +37,12 @@
3737
"eslint-config-prettier": "^6.11.0",
3838
"express": "4.17.0",
3939
"html-webpack-plugin": "^4.3.0",
40-
"jest": "^26.1.0",
40+
"jest": "^29.0.0",
41+
"jest-environment-jsdom": "^29.0.0",
4142
"npm-run-all": "^4.1.5",
4243
"prettier": "^2.3.1",
4344
"rimraf": "^3.0.2",
44-
"ts-jest": "^26.5.6",
45+
"ts-jest": "^29.0.0",
4546
"ts-loader": "^9.2.1",
4647
"tslint-config-prettier": "^1.18.0",
4748
"typescript": "^5.0.0",

0 commit comments

Comments
 (0)