Skip to content

Commit df3092b

Browse files
committed
deps: using swc/jest for running tests now
1 parent dd3acac commit df3092b

File tree

3 files changed

+466
-53
lines changed

3 files changed

+466
-53
lines changed

jest.config.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,21 @@ module.exports = {
5050
roots: ['<rootDir>/tests'],
5151
testMatch: ['**/?(*.)+(spec|test|unit.test).+(ts|tsx|js|jsx)'],
5252
transform: {
53-
'^.+\\.tsx?$': 'ts-jest',
54-
'^.+\\.jsx?$': 'babel-jest',
53+
"^.+\\.(t|j)sx?$": [
54+
"@swc/jest",
55+
{
56+
jsc: {
57+
parser: {
58+
syntax: "typescript",
59+
tsx: true,
60+
decorators: compilerOptions.experimentalDecorators,
61+
dynamicImport: true,
62+
},
63+
target: compilerOptions.target.toLowerCase(),
64+
keepClassNames: true,
65+
},
66+
}
67+
],
5568
},
5669
reporters: [
5770
'default',

0 commit comments

Comments
 (0)