Skip to content

Commit

Permalink
Fix @testing-library/react-hooks
Browse files Browse the repository at this point in the history
It doesn't yet support react>18
  • Loading branch information
jessie-ross committed Apr 26, 2022
1 parent 73fba78 commit ab3738f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 42 deletions.
7 changes: 3 additions & 4 deletions packages/explat-client-react-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@
},
"dependencies": {
"@automattic/explat-client": "workspace:^",
"react": ">=16.8",
"react": ">=16.8 <18",
"tslib": ">=2.3.0"
},
"devDependencies": {
"@automattic/calypso-polyfills": "workspace:^",
"@automattic/calypso-typescript-config": "workspace:^",
"@testing-library/react": "^12.1.3",
"@testing-library/react-hooks": "7.0.2",
"react-dom": ">=16.8",
"typescript": ">=4.5.5"
"@testing-library/react-hooks": "^7.0.2",
"typescript": "^4.5.5"
}
}
45 changes: 7 additions & 38 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,10 @@ __metadata:
"@automattic/calypso-typescript-config": "workspace:^"
"@automattic/explat-client": "workspace:^"
"@testing-library/react": ^12.1.3
"@testing-library/react-hooks": 7.0.2
react: ">=16.8"
react-dom: ">=16.8"
"@testing-library/react-hooks": ^7.0.2
react: ">=16.8 <18"
tslib: ">=2.3.0"
typescript: ">=4.5.5"
typescript: ^4.5.5
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -6641,7 +6640,7 @@ __metadata:
languageName: node
linkType: hard

"@testing-library/react-hooks@npm:7.0.2":
"@testing-library/react-hooks@npm:7.0.2, @testing-library/react-hooks@npm:^7.0.2":
version: 7.0.2
resolution: "@testing-library/react-hooks@npm:7.0.2"
dependencies:
Expand Down Expand Up @@ -30443,18 +30442,6 @@ fsevents@~2.1.2:
languageName: node
linkType: hard

"react-dom@npm:>=16.8":
version: 18.0.0
resolution: "react-dom@npm:18.0.0"
dependencies:
loose-envify: ^1.1.0
scheduler: ^0.21.0
peerDependencies:
react: ^18.0.0
checksum: 78aa393ab4ae35f7266ba5cd761ebd35cab8375f63051bda2bb97a27be2622dbd661b24b32b8e55f9365aa027e732251e7d0d754c755f8efb6bd38a72ba03df8
languageName: node
linkType: hard

"react-dom@npm:^16.13.1":
version: 16.13.1
resolution: "react-dom@npm:16.13.1"
Expand Down Expand Up @@ -31043,7 +31030,7 @@ fsevents@~2.1.2:
languageName: node
linkType: hard

"react@npm:17.0.2, react@npm:^17.0.1, react@npm:^17.0.2":
"react@npm:17.0.2, react@npm:>=16.8 <18, react@npm:^17.0.1, react@npm:^17.0.2":
version: 17.0.2
resolution: "react@npm:17.0.2"
dependencies:
Expand All @@ -31053,15 +31040,6 @@ fsevents@~2.1.2:
languageName: node
linkType: hard

"react@npm:>=16.8":
version: 18.0.0
resolution: "react@npm:18.0.0"
dependencies:
loose-envify: ^1.1.0
checksum: cf55bc7b4315f54321d04cb0b69241c4973a5182d679551b3e6c3f57b312a4fdeac05038ca9502d48ea4d040d7550b0b7f07b3872a19589a5995ee899cc19d2b
languageName: node
linkType: hard

"react@npm:^16.13.1":
version: 16.13.1
resolution: "react@npm:16.13.1"
Expand Down Expand Up @@ -33269,15 +33247,6 @@ resolve@^2.0.0-next.3:
languageName: node
linkType: hard

"scheduler@npm:^0.21.0":
version: 0.21.0
resolution: "scheduler@npm:0.21.0"
dependencies:
loose-envify: ^1.1.0
checksum: 083a9a0c83f4923f7f5bb28d8bcf13cff42c90f4303bc187166520fcfc576c97e946d426c707d5a9c0aa0a655819605dd0c741467c626824bbf191251c126f1b
languageName: node
linkType: hard

"schema-utils@npm:2.7.0":
version: 2.7.0
resolution: "schema-utils@npm:2.7.0"
Expand Down Expand Up @@ -36508,7 +36477,7 @@ [email protected]:
languageName: node
linkType: hard

"typescript@npm:>=4.5.5, typescript@npm:^4.5.5":
"typescript@npm:^4.5.5":
version: 4.6.3
resolution: "typescript@npm:4.6.3"
bin:
Expand All @@ -36518,7 +36487,7 @@ [email protected]:
languageName: node
linkType: hard

"typescript@patch:typescript@>=4.5.5#~builtin<compat/typescript>, typescript@patch:typescript@^4.5.5#~builtin<compat/typescript>":
"typescript@patch:typescript@^4.5.5#~builtin<compat/typescript>":
version: 4.6.3
resolution: "typescript@patch:typescript@npm%3A4.6.3#~builtin<compat/typescript>::version=4.6.3&hash=493e53"
bin:
Expand Down

0 comments on commit ab3738f

Please sign in to comment.