Skip to content

Commit

Permalink
feat: Add support for React 19 (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored Dec 5, 2024
1 parent 3dcd8a9 commit 85ac253
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"devDependencies": {
"@testing-library/dom": "^10.0.0",
"@testing-library/jest-dom": "^5.11.6",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"chalk": "^4.1.2",
"dotenv-cli": "^4.0.0",
"jest-diff": "^29.7.0",
Expand All @@ -64,10 +64,10 @@
},
"peerDependencies": {
"@testing-library/dom": "^10.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"@types/react": "^18.0.0 || ^19.0.0",
"@types/react-dom": "^18.0.0 || ^19.0.0",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
Expand Down
6 changes: 5 additions & 1 deletion types/test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ export function wrappedRender(
ui: React.ReactNode,
options?: pure.RenderOptions,
) {
const Wrapper = ({children}: {children: React.ReactNode}): JSX.Element => {
const Wrapper = ({
children,
}: {
children: React.ReactNode
}): React.JSX.Element => {
return <div>{children}</div>
}

Expand Down

0 comments on commit 85ac253

Please sign in to comment.