Skip to content

Commit 5143a30

Browse files
committed
test: 改用ts-jest
1 parent 574e242 commit 5143a30

File tree

3 files changed

+7
-22
lines changed

3 files changed

+7
-22
lines changed

babel.config.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

jest.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
export default {
2-
testEnvironment: "jsdom"
3-
}
2+
preset: 'ts-jest',
3+
testEnvironment: 'jsdom'
4+
// transform: {
5+
// '^.+.tsx?$': ['ts-jest', {}]
6+
// }
7+
};

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@
5858
"util-helpers": "^5.3.1"
5959
},
6060
"devDependencies": {
61-
"@babel/core": "^7.26.0",
62-
"@babel/preset-env": "^7.26.0",
63-
"@babel/preset-react": "^7.25.9",
64-
"@babel/preset-typescript": "^7.26.0",
6561
"@commitlint/cli": "^19.6.0",
6662
"@commitlint/config-conventional": "^19.6.0",
6763
"@commitlint/cz-commitlint": "^19.5.0",
@@ -77,7 +73,6 @@
7773
"@typescript-eslint/eslint-plugin": "^7.18.0",
7874
"@typescript-eslint/parser": "^7.18.0",
7975
"antd": "^5.22.2",
80-
"babel-jest": "^29.7.0",
8176
"commitizen": "^4.3.1",
8277
"cross-env": "^7.0.3",
8378
"dayjs": "^1.11.13",
@@ -95,6 +90,7 @@
9590
"react": "^18.3.1",
9691
"react-dom": "^18.3.1",
9792
"rollup": "^4.27.4",
93+
"ts-jest": "^29.2.5",
9894
"ts-node": "^10.9.2",
9995
"typescript": "^5.7.2"
10096
},

0 commit comments

Comments
 (0)