Skip to content

Commit 702f89b

Browse files
authored
Build/jest swc (#3259)
* build: switch ts-jest to swc * build: remove babel
1 parent 6afc98a commit 702f89b

File tree

4 files changed

+294
-952
lines changed

4 files changed

+294
-952
lines changed

babel.config.js

-12
This file was deleted.

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-4
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@
8383
"email": "[email protected]"
8484
},
8585
"devDependencies": {
86-
"@babel/core": "^7.12.10",
87-
"@babel/preset-env": "^7.12.11",
8886
"@lerna/project": "^5.0.0",
87+
"@swc/core": "^1.2.207",
88+
"@swc/jest": "^0.2.21",
8989
"@types/jest": "^28.0.0",
9090
"@types/node": "^14.0.0",
9191
"@typescript-eslint/eslint-plugin": "^5.0.0",
@@ -97,11 +97,10 @@
9797
"eslint-plugin-import": "^2.20.1",
9898
"eslint-plugin-jest": "^26.0.0",
9999
"husky": "^8.0.0",
100-
"jest": "28.1.1",
100+
"jest": "^28.1.2",
101101
"lerna": "^5.0.0",
102102
"lint-staged": "13.0.3",
103103
"prettier": "^2.0.5",
104-
"ts-jest": "^28.0.2",
105104
"typescript": "^4.6.4"
106105
},
107106
"resolutions": {

0 commit comments

Comments
 (0)