Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
build: switch ts-jest to swc
  • Loading branch information
escapedcat committed Jul 1, 2022
commit 67e5d52271e2d11d73b45825c268a8028b5a9fb1
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
module.exports = {
preset: 'ts-jest/presets/js-with-babel',
transform: {
'^.+\\.(t|j)s?$': ['@swc/jest'],
},
testEnvironment: '@commitlint/test-environment',
testRegex: undefined,
testMatch: ['**/*.test.[jt]s?(x)'],
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
"@babel/core": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@lerna/project": "^5.0.0",
"@swc/core": "^1.2.207",
"@swc/jest": "^0.2.21",
"@types/jest": "^28.0.0",
"@types/node": "^14.0.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
Expand All @@ -97,11 +99,10 @@
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jest": "^26.0.0",
"husky": "^8.0.0",
"jest": "28.1.1",
"jest": "^28.1.2",
"lerna": "^5.0.0",
"lint-staged": "13.0.3",
"prettier": "^2.0.5",
"ts-jest": "^28.0.2",
"typescript": "^4.6.4"
},
"resolutions": {
Expand Down
Loading