Skip to content

Commit 44437ff

Browse files
make rsc and non-rsc test script choose tests according to the file extension
1 parent 16472de commit 44437ff

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

packages/react-on-rails-pro/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"build-watch": "yarn run clean && yarn run tsc --watch",
99
"clean": "rm -rf ./lib",
1010
"test": "yarn test:non-rsc && yarn test:rsc",
11-
"test:non-rsc": "jest tests --testPathIgnorePatterns=\".*(ReactOnRailsRSC).*\"",
12-
"test:rsc": "NODE_CONDITIONS=react-server jest tests/ReactOnRailsRSC.test.tsx",
11+
"test:non-rsc": "jest tests --testPathIgnorePatterns=\".*(.rsc.test.).*\"",
12+
"test:rsc": "NODE_CONDITIONS=react-server jest tests/*.rsc.test.*",
1313
"type-check": "yarn run tsc --noEmit --noErrorTruncation",
1414
"prepack": "nps build.prepack",
1515
"prepare": "nps build.prepack",

0 commit comments

Comments
 (0)