@@ -40,15 +40,15 @@ gsub_file_content("../spec/dummy/package.json", /"react": "[^"]*",/, '"react": "
4040gsub_file_content ( "../spec/dummy/package.json" , /"react-dom": "[^"]*",/ , '"react-dom": "18.0.0",' )
4141gsub_file_content (
4242 "../packages/react-on-rails-pro/package.json" ,
43- "jest tests --testPathIgnorePatterns= \\ \" .*(ReactOnRailsRSC).* \\ \" " ,
44- 'jest tests --testPathIgnorePatterns=\".*(RSC|stream|' \
45- 'registerServerComponent|serverRenderReactComponent|SuspenseHydration).*\"'
43+ /"test:non-rsc": "(?: \\ "|[^"])*",/ ,
44+ '"test:non-rsc": " jest tests --testPathIgnorePatterns=\".*(RSC|stream|' \
45+ 'registerServerComponent|serverRenderReactComponent|SuspenseHydration).*\"", '
4646)
47- # Make test- rsc script do nothing
47+ # Make test: rsc script do nothing
4848gsub_file_content (
4949 "../packages/react-on-rails-pro/package.json" ,
50- /"test- rsc": "(?:\\ "|[^"])*",/ ,
51- '"test- rsc": "exit 0",'
50+ /"test: rsc": "(?:\\ "|[^"])*",/ ,
51+ '"test: rsc": "exit 0",'
5252)
5353# Keep modern JSX transform for React 18+
5454# gsub_file_content("../tsconfig.json", "react-jsx", "react")
0 commit comments