Skip to content

Commit 85ac253

Browse files
authored
feat: Add support for React 19 (#1367)
1 parent 3dcd8a9 commit 85ac253

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"devDependencies": {
5151
"@testing-library/dom": "^10.0.0",
5252
"@testing-library/jest-dom": "^5.11.6",
53-
"@types/react": "^18.3.1",
54-
"@types/react-dom": "^18.3.0",
53+
"@types/react": "^19.0.0",
54+
"@types/react-dom": "^19.0.0",
5555
"chalk": "^4.1.2",
5656
"dotenv-cli": "^4.0.0",
5757
"jest-diff": "^29.7.0",
@@ -64,10 +64,10 @@
6464
},
6565
"peerDependencies": {
6666
"@testing-library/dom": "^10.0.0",
67-
"@types/react": "^18.0.0",
68-
"@types/react-dom": "^18.0.0",
69-
"react": "^18.0.0",
70-
"react-dom": "^18.0.0"
67+
"@types/react": "^18.0.0 || ^19.0.0",
68+
"@types/react-dom": "^18.0.0 || ^19.0.0",
69+
"react": "^18.0.0 || ^19.0.0",
70+
"react-dom": "^18.0.0 || ^19.0.0"
7171
},
7272
"peerDependenciesMeta": {
7373
"@types/react": {

types/test.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,11 @@ export function wrappedRender(
128128
ui: React.ReactNode,
129129
options?: pure.RenderOptions,
130130
) {
131-
const Wrapper = ({children}: {children: React.ReactNode}): JSX.Element => {
131+
const Wrapper = ({
132+
children,
133+
}: {
134+
children: React.ReactNode
135+
}): React.JSX.Element => {
132136
return <div>{children}</div>
133137
}
134138

0 commit comments

Comments
 (0)