Skip to content

Commit

Permalink
Build/jest swc (#3259)
Browse files Browse the repository at this point in the history
* build: switch ts-jest to swc

* build: remove babel
  • Loading branch information
escapedcat committed Jul 1, 2022
1 parent 6afc98a commit 702f89b
Show file tree
Hide file tree
Showing 4 changed files with 294 additions and 952 deletions.
12 changes: 0 additions & 12 deletions babel.config.js

This file was deleted.

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
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
"email": "hello@herebecode.com"
},
"devDependencies": {
"@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 +97,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

0 comments on commit 702f89b

Please sign in to comment.