Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 6 additions & 6 deletions
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‎

Lines changed: 5 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /