File tree Expand file tree Collapse file tree 4 files changed +261
-35
lines changed Expand file tree Collapse file tree 4 files changed +261
-35
lines changed Original file line number Diff line number Diff line change 37
37
38
38
# macOS
39
39
.DS_Store
40
+ . * cache
Original file line number Diff line number Diff line change
1
+ import type { Options as SwcOptions } from '@swc/core'
1
2
import type { Config } from 'jest'
2
3
3
4
const testCompiled = process . env . TEST_COMPILED === '1'
4
5
5
6
const srcDir = testCompiled ? 'lib' : 'src'
6
7
7
8
export default {
8
- preset : 'ts-jest' ,
9
9
collectCoverage : ! testCompiled ,
10
10
modulePathIgnorePatterns : [ '<rootDir>/test/fixtures/with-syntax-error' ] ,
11
11
moduleNameMapper : {
@@ -15,6 +15,6 @@ export default {
15
15
} ,
16
16
testMatch : [ '<rootDir>/test/**/*.spec.ts' ] ,
17
17
transform : {
18
- '^.+\\.tsx ?$' : [ 'ts- jest' , { tsconfig : 'tsconfig.base.json' } ] ,
18
+ '^.+\\.(t|j)sx ?$' : [ '@swc-node/ jest' , { } satisfies SwcOptions ] ,
19
19
} ,
20
20
} satisfies Config
Original file line number Diff line number Diff line change 73
73
"@changesets/changelog-github" : " ^0.5.0" ,
74
74
"@changesets/cli" : " ^2.27.1" ,
75
75
"@eslint/import-test-order-redirect-scoped" : " link:./test/fixtures/order-redirect-scoped" ,
76
+ "@swc-node/jest" : " ^1.8.0" ,
77
+ "@swc/core" : " ^1.4.8" ,
78
+ "@swc/helpers" : " ^0.5.7" ,
76
79
"@test-scope/some-module" : " link:./test/fixtures/symlinked-module" ,
77
80
"@total-typescript/ts-reset" : " ^0.5.1" ,
78
81
"@types/debug" : " ^4.1.12" ,
108
111
"redux" : " ^5.0.1" ,
109
112
"rimraf" : " ^5.0.5" ,
110
113
"svelte" : " ^4.2.12" ,
111
- "ts-jest" : " ^29.1.2" ,
112
114
"ts-node" : " ^10.9.2" ,
113
115
"type-fest" : " ^4.12.0" ,
114
116
"typescript" : " ~5.1.0"
You can’t perform that action at this time.
0 commit comments