Skip to content

Commit c098450

Browse files
pkg: Update @testing-library/react-native to v13 (#3342)
* pkg: Update `@testing-library/react-native` to v13 * internal: Do not test RN on react 17 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Nathaniel Tucker <[email protected]>
1 parent aec6161 commit c098450

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
- run:
107107
name: Installing React Version
108108
command: |
109-
if [ "<< parameters.react-version >>" == "^17.0.0" ]; then
109+
if [ "<< parameters.react-version >>" == "^17" ]; then
110110
yarn up react@<< parameters.react-version >> react-dom@<< parameters.react-version >> react-test-renderer@<< parameters.react-version >> @react-navigation/native@^6.0.0 @react-navigation/native-stack@^6.0.0 react-native-screens@^3.0.0 @testing-library/react@^12.0.0
111111
yarn workspace @data-client/test add --dev @testing-library/react-hooks
112112
elif [ "<< parameters.react-version >>" == "^18" ]; then
@@ -116,8 +116,8 @@ jobs:
116116
- run:
117117
name: Running Jest
118118
command: |
119-
if [ "<< parameters.react-version >>" == "^17.0.0" ]; then
120-
yarn test:ci --maxWorkers=3 --selectProjects ReactDOM ReactNative --testPathPattern packages/react packages/use-enhanced-reducer packages/img
119+
if [ "<< parameters.react-version >>" == "^17" ]; then
120+
yarn test:ci --maxWorkers=3 --selectProjects ReactDOM --testPathPattern packages/react packages/use-enhanced-reducer packages/img
121121
elif [ "<< parameters.react-version >>" == "^18" ]; then
122122
curl -Os https://uploader.codecov.io/latest/linux/codecov;
123123
chmod +x codecov;
@@ -149,7 +149,7 @@ jobs:
149149
command: |
150150
yarn workspace @data-client/react add --dev @testing-library/react-hooks
151151
yarn workspace @data-client/test add --dev @testing-library/react-hooks
152-
yarn up react@18 react-dom@18 react-test-renderer@18
152+
yarn up react@^18 react-dom@^18 react-test-renderer@^18
153153
- run:
154154
# we must use npm because yarn 4 isn't compatible with legacy node versions
155155
command: |
@@ -245,7 +245,7 @@ workflows:
245245
- unit_tests:
246246
matrix:
247247
parameters:
248-
react-version: ["^17.0.0", "^18", "latest"]
248+
react-version: ["^17", "^18", "latest"]
249249
requires:
250250
- setup
251251
- node_matrix:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"@testing-library/dom": "^10.4.0",
6969
"@testing-library/react": "16.1.0",
7070
"@testing-library/react-hooks": "8.0.1",
71-
"@testing-library/react-native": "12.9.0",
71+
"@testing-library/react-native": "13.0.0",
7272
"@types/jest": "29.5.14",
7373
"@types/node": "22.10.2",
7474
"@types/react": "19.0.2",

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@
195195
"@react-navigation/native-stack": "^7.2.0",
196196
"@testing-library/dom": "^10.4.0",
197197
"@testing-library/react": "^16.1.0",
198-
"@testing-library/react-native": "^12.9.0",
198+
"@testing-library/react-native": "^13.0.0",
199199
"@types/jest": "^29.5.14",
200200
"@types/node": "^22.0.0",
201201
"@types/qs": "^6",

packages/test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"@babel/runtime": "^7.17.0",
115115
"@testing-library/dom": "^10.1.0",
116116
"@testing-library/react": "^16.0.0",
117-
"@testing-library/react-native": "^12.0.1"
117+
"@testing-library/react-native": "^13.0.0"
118118
},
119119
"peerDependencies": {
120120
"@data-client/react": "^0.12.15 || ^0.13.0 || ^0.14.0",

yarn.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3207,7 +3207,7 @@ __metadata:
32073207
"@react-navigation/native-stack": "npm:^7.2.0"
32083208
"@testing-library/dom": "npm:^10.4.0"
32093209
"@testing-library/react": "npm:^16.1.0"
3210-
"@testing-library/react-native": "npm:^12.9.0"
3210+
"@testing-library/react-native": "npm:^13.0.0"
32113211
"@types/jest": "npm:^29.5.14"
32123212
"@types/node": "npm:^22.0.0"
32133213
"@types/qs": "npm:^6"
@@ -3261,7 +3261,7 @@ __metadata:
32613261
"@data-client/react": "workspace:*"
32623262
"@testing-library/dom": "npm:^10.1.0"
32633263
"@testing-library/react": "npm:^16.0.0"
3264-
"@testing-library/react-native": "npm:^12.0.1"
3264+
"@testing-library/react-native": "npm:^13.0.0"
32653265
"@types/jest": "npm:^29.5.0"
32663266
"@types/node": "npm:^22.0.0"
32673267
"@types/react": "npm:19.0.2"
@@ -6532,22 +6532,22 @@ __metadata:
65326532
languageName: node
65336533
linkType: hard
65346534

6535-
"@testing-library/react-native@npm:12.9.0, @testing-library/react-native@npm:^12.0.1, @testing-library/react-native@npm:^12.9.0":
6536-
version: 12.9.0
6537-
resolution: "@testing-library/react-native@npm:12.9.0"
6535+
"@testing-library/react-native@npm:13.0.0, @testing-library/react-native@npm:^13.0.0":
6536+
version: 13.0.0
6537+
resolution: "@testing-library/react-native@npm:13.0.0"
65386538
dependencies:
65396539
jest-matcher-utils: "npm:^29.7.0"
65406540
pretty-format: "npm:^29.7.0"
65416541
redent: "npm:^3.0.0"
65426542
peerDependencies:
6543-
jest: ">=28.0.0"
6544-
react: ">=16.8.0"
6545-
react-native: ">=0.59"
6546-
react-test-renderer: ">=16.8.0"
6543+
jest: ">=29.0.0"
6544+
react: ">=18.2.0"
6545+
react-native: ">=0.71"
6546+
react-test-renderer: ">=18.2.0"
65476547
peerDependenciesMeta:
65486548
jest:
65496549
optional: true
6550-
checksum: 10c0/d29a2c9a4f1318a8fbf7d53927e42c34bd3bc00c46ba7e4010828c927a2b504cbaa3284deba7780fa467b6b1b2d5ce1a4a2ab9f2d1d08d7a1740dc5b2242df21
6550+
checksum: 10c0/3d3ded3534842d79ec8ab9722e36c4e20fc77ec62704ed77071a045a11b751004487284313dd5408d759815725b24a7a74d7ef6ab1d517f0a54424f80cd07fb8
65516551
languageName: node
65526552
linkType: hard
65536553

@@ -26695,7 +26695,7 @@ __metadata:
2669526695
"@testing-library/dom": "npm:^10.4.0"
2669626696
"@testing-library/react": "npm:16.1.0"
2669726697
"@testing-library/react-hooks": "npm:8.0.1"
26698-
"@testing-library/react-native": "npm:12.9.0"
26698+
"@testing-library/react-native": "npm:13.0.0"
2669926699
"@types/jest": "npm:29.5.14"
2670026700
"@types/node": "npm:22.10.2"
2670126701
"@types/react": "npm:19.0.2"

0 commit comments

Comments
 (0)