Skip to content

Commit 59d93bd

Browse files
committed
Try React 17 instead
1 parent d4289bd commit 59d93bd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

script/convert

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,15 @@ gsub_file_content("../package.json", %r{"@testing-library/dom": "[^"]*",}, "")
2929
gsub_file_content("../package.json", %r{"@testing-library/react": "[^"]*",}, "")
3030

3131
# Switch to the oldest supported React version
32-
gsub_file_content("../package.json", /"react": "[^"]*",/, '"react": "16.0.0",')
33-
gsub_file_content("../package.json", /"react-dom": "[^"]*",/, '"react-dom": "16.0.0",')
34-
gsub_file_content("../spec/dummy/package.json", /"react": "[^"]*",/, '"react": "16.0.0",')
35-
gsub_file_content("../spec/dummy/package.json", /"react-dom": "[^"]*",/, '"react-dom": "16.0.0",')
32+
gsub_file_content("../package.json", /"react": "[^"]*",/, '"react": "17.0.0",')
33+
gsub_file_content("../package.json", /"react-dom": "[^"]*",/, '"react-dom": "17.0.0",')
34+
gsub_file_content("../spec/dummy/package.json", /"react": "[^"]*",/, '"react": "17.0.0",')
35+
gsub_file_content("../spec/dummy/package.json", /"react-dom": "[^"]*",/, '"react-dom": "17.0.0",')
3636
gsub_file_content(
3737
"../package.json",
3838
"jest node_package/tests",
3939
'jest node_package/tests --testPathIgnorePatterns=\".*RSC.*\" --testNamePattern=\"^(?!.*#react>16).*\"'
4040
)
41-
gsub_file_content("../tsconfig.json", "react-jsx", "react")
4241

4342
gsub_file_content("../spec/dummy/config/webpack/commonWebpackConfig.js", /generateWebpackConfig(\(\))?/,
4443
"webpackConfig")

0 commit comments

Comments
 (0)