Skip to content

Commit

Permalink
test: add support for --watchAll
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh authored and mjackson committed Sep 23, 2021
1 parent d107417 commit 97236cf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
6 changes: 0 additions & 6 deletions packages/react-router-dom/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,5 @@ module.exports = {
},
globals: {
__DEV__: true
},
moduleNameMapper: {
"^react-router$": "<rootDir>/../../build/react-router",
"^react-router-dom$": "<rootDir>/../../build/react-router-dom",
"^react-router-dom\\/server$":
"<rootDir>/../../build/react-router-dom/server"
}
};
4 changes: 0 additions & 4 deletions packages/react-router-native/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ module.exports = {
globals: {
__DEV__: true
},
moduleNameMapper: {
"^react-router$": "<rootDir>/../../build/react-router",
"^react-router-native$": "<rootDir>/../../build/react-router-native"
},
modulePaths: [
"<rootDir>/node_modules" // for react-native
],
Expand Down
3 changes: 0 additions & 3 deletions packages/react-router/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@ module.exports = {
},
globals: {
__DEV__: true
},
moduleNameMapper: {
"^react-router$": "<rootDir>/../../build/react-router"
}
};
4 changes: 4 additions & 0 deletions scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ if (args.includes("--watch")) {
jestArgs.push("--watch");
}

if (args.includes("--watchAll")) {
jestArgs.push("--watchAll");
}

if (args.includes("-u")) {
jestArgs.push("-u");
}
Expand Down

0 comments on commit 97236cf

Please sign in to comment.