From 0ac1a8143922ddb8332cc03b287714518f03175b Mon Sep 17 00:00:00 2001 From: BrianHung Date: Tue, 11 Jun 2024 02:19:17 -0700 Subject: [PATCH] fix react 18 test --- package.json | 8 +++++--- setup-react-18-test.sh | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 472f95108..e1e424ef2 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,8 @@ "@storybook/react": "^7.6.12", "@storybook/react-vite": "^7.6.12", "@storybook/react-webpack5": "^7.6.12", - "@testing-library/react": "^12.1.2", + "@testing-library/dom": "^10.1.0", + "@testing-library/react": "^16.0.0", "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.5.1", "@types/cheerio": "^0.22.30", @@ -85,11 +86,12 @@ "marked": "^4.0.10", "mini-css-extract-plugin": "^2.6.1", "prettier": "^3.0.2", - "react": "^16.12.0 || 17.x", - "react-dom": "^16.12.0 || 17.x", + "react": "^18.3.1", + "react-dom": "^18.3.1", "react-laag": "^2.0.3", "react-responsive-carousel": "^3.2.7", "react-syntax-highlighter": "^15.4.5", + "react-test-renderer": "^18.3.1", "resolve-typescript-plugin": "^2.0.1", "storybook": "^7.6.12", "tsc-esm-fix": "^2.7.8", diff --git a/setup-react-18-test.sh b/setup-react-18-test.sh index f68e8f92a..18bab1a5e 100755 --- a/setup-react-18-test.sh +++ b/setup-react-18-test.sh @@ -1,3 +1,3 @@ #!/bin/bash -npm i -D react@latest react-dom@latest @testing-library/react@latest @testing-library/react-hooks@latest @testing-library/user-event@14.5.1 react-test-renderer@latest \ No newline at end of file +npm i -D react@latest react-dom@latest @testing-library/react@latest @testing-library/react-hooks@latest @testing-library/user-event@14.5.1 react-test-renderer@latest @testing-library/dom \ No newline at end of file