Skip to content

Commit 97236cf

Browse files
mcanshmjackson
authored andcommitted
test: add support for --watchAll
Signed-off-by: Logan McAnsh <logan@mcan.sh>
1 parent d107417 commit 97236cf

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

packages/react-router-dom/jest.config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,5 @@ module.exports = {
55
},
66
globals: {
77
__DEV__: true
8-
},
9-
moduleNameMapper: {
10-
"^react-router$": "<rootDir>/../../build/react-router",
11-
"^react-router-dom$": "<rootDir>/../../build/react-router-dom",
12-
"^react-router-dom\\/server$":
13-
"<rootDir>/../../build/react-router-dom/server"
148
}
159
};

packages/react-router-native/jest.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ module.exports = {
77
globals: {
88
__DEV__: true
99
},
10-
moduleNameMapper: {
11-
"^react-router$": "<rootDir>/../../build/react-router",
12-
"^react-router-native$": "<rootDir>/../../build/react-router-native"
13-
},
1410
modulePaths: [
1511
"<rootDir>/node_modules" // for react-native
1612
],

packages/react-router/jest.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ module.exports = {
55
},
66
globals: {
77
__DEV__: true
8-
},
9-
moduleNameMapper: {
10-
"^react-router$": "<rootDir>/../../build/react-router"
118
}
129
};

scripts/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ if (args.includes("--watch")) {
2222
jestArgs.push("--watch");
2323
}
2424

25+
if (args.includes("--watchAll")) {
26+
jestArgs.push("--watchAll");
27+
}
28+
2529
if (args.includes("-u")) {
2630
jestArgs.push("-u");
2731
}

0 commit comments

Comments
 (0)