Skip to content

Commit aa93396

Browse files
committed
fix: transform patterns in jest config
1 parent 2c297a9 commit aa93396

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugin.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ export default ({
8282
testMatch: tests.map(mapFile),
8383
testRunner: mapTestRunner(mapFile(projectConfig.testRunner)),
8484
transform: {
85-
'^(?!node_modules/).+\\.js$': '@swc/jest',
86-
'^.+\\.jsx$': '@swc/jest',
87-
'^.+\\.tsx?$': '@swc/jest',
85+
'^(?!.*node_modules/).+\\.js$': '@swc/jest',
86+
'^.+\\.(jsx|tsx?)$': '@swc/jest',
8887
},
8988
transformIgnorePatterns: [],
9089
});

0 commit comments

Comments
 (0)