Skip to content

Commit 67e5d52

Browse files
committed
build: switch ts-jest to swc
1 parent 6afc98a commit 67e5d52

File tree

3 files changed

+277
-142
lines changed

3 files changed

+277
-142
lines changed

jest.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module.exports = {
2-
preset: 'ts-jest/presets/js-with-babel',
2+
transform: {
3+
'^.+\\.(t|j)s?$': ['@swc/jest'],
4+
},
35
testEnvironment: '@commitlint/test-environment',
46
testRegex: undefined,
57
testMatch: ['**/*.test.[jt]s?(x)'],

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@
8686
"@babel/core": "^7.12.10",
8787
"@babel/preset-env": "^7.12.11",
8888
"@lerna/project": "^5.0.0",
89+
"@swc/core": "^1.2.207",
90+
"@swc/jest": "^0.2.21",
8991
"@types/jest": "^28.0.0",
9092
"@types/node": "^14.0.0",
9193
"@typescript-eslint/eslint-plugin": "^5.0.0",
@@ -97,11 +99,10 @@
9799
"eslint-plugin-import": "^2.20.1",
98100
"eslint-plugin-jest": "^26.0.0",
99101
"husky": "^8.0.0",
100-
"jest": "28.1.1",
102+
"jest": "^28.1.2",
101103
"lerna": "^5.0.0",
102104
"lint-staged": "13.0.3",
103105
"prettier": "^2.0.5",
104-
"ts-jest": "^28.0.2",
105106
"typescript": "^4.6.4"
106107
},
107108
"resolutions": {

0 commit comments

Comments
 (0)