feat: use babel to replace ts-jest (improve performance)

This commit is contained in:
wancat committed 2024-02-28 23:32:06 +08:00
1 parent 15278dfab2
commit 6c111a4475
4 files changed
+895 -45

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
module.exports = {
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript',
],
}
-1
View File
@@ -6,7 +6,6 @@
import type { Config } from 'jest'
const config: Config = {
preset: 'ts-jest/presets/default-esm',
// All imported modules in your tests should be mocked automatically
// automock: false,
+4 -1
View File
@@ -28,12 +28,16 @@
"build:quests": "yarn workspace server build:quests"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/preset-env": "^7.24.0",
"@babel/preset-typescript": "^7.23.3",
"@jest/globals": "^29.7.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vue/eslint-config-prettier": "^7.1.0",
"babel-jest": "^29.7.0",
"concurrently": "^8.2.2",
"eslint": "^8.44.0",
"eslint-config-airbnb-base": "^15.0.0",
@@ -46,7 +50,6 @@
"eslint-plugin-vue": "^9.15.1",
"jest": "^29.7.0",
"prettier": "^3.0.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
+885 -43
View File
File diff suppressed because it is too large. Load diff