Skip to content

Commit 7247c70

Browse files
committed
fix tests
1 parent 6cebce2 commit 7247c70

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

jest.config.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ export default {
1313
roots: ["<rootDir>/tests"],
1414
testPathIgnorePatterns: ["\.browser\.(spec|test)\.[jt]sx?$", "/tests/wire/", "/tests/integration/"],
1515
setupFilesAfterEnv: [],
16+
transformIgnorePatterns: [
17+
"node_modules/(?!(msw|@mswjs|@bundled-es-modules|until-async)/)",
18+
],
19+
transform: {
20+
"^.+\\.tsx?$": "ts-jest",
21+
"^.+\\.m?jsx?$": "ts-jest",
22+
},
1623
},
1724
{
1825
displayName: "browser",
@@ -24,6 +31,13 @@ export default {
2431
roots: ["<rootDir>/tests"],
2532
testMatch: ["<rootDir>/tests/unit/**/?(*.)+(browser).(spec|test).[jt]s?(x)"],
2633
setupFilesAfterEnv: [],
34+
transformIgnorePatterns: [
35+
"node_modules/(?!(msw|@mswjs|@bundled-es-modules|until-async)/)",
36+
],
37+
transform: {
38+
"^.+\\.tsx?$": "ts-jest",
39+
"^.+\\.m?jsx?$": "ts-jest",
40+
},
2741
},
2842
{
2943
displayName: "wire",
@@ -34,6 +48,13 @@ export default {
3448
},
3549
roots: ["<rootDir>/tests/wire"],
3650
setupFilesAfterEnv: ["<rootDir>/tests/mock-server/setup.ts"],
51+
transformIgnorePatterns: [
52+
"node_modules/(?!(msw|@mswjs|@bundled-es-modules|until-async)/)",
53+
],
54+
transform: {
55+
"^.+\\.tsx?$": "ts-jest",
56+
"^.+\\.m?jsx?$": "ts-jest",
57+
},
3758
},
3859
{
3960
displayName: "integration",
@@ -43,6 +64,13 @@ export default {
4364
"^(\.{1,2}/.*)\.js$": "$1",
4465
},
4566
roots: ["<rootDir>/tests/integration"],
67+
transformIgnorePatterns: [
68+
"node_modules/(?!(msw|@mswjs|@bundled-es-modules|until-async)/)",
69+
],
70+
transform: {
71+
"^.+\\.tsx?$": "ts-jest",
72+
"^.+\\.m?jsx?$": "ts-jest",
73+
},
4674
},
4775
],
4876
workerThreads: false,

0 commit comments

Comments
 (0)