Skip to content

Commit 71b059b

Browse files
committed
chore: update examples
1 parent 3f1d010 commit 71b059b

File tree

6 files changed

+20
-29
lines changed

6 files changed

+20
-29
lines changed

examples/basic/jest-setup.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
import { configure } from '@testing-library/react-native';
22

3-
// Import built-in Jest matchers
4-
import '@testing-library/react-native/extend-expect';
5-
63
// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
74
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
8-
9-
configure({ concurrentRoot: true });

examples/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"devDependencies": {
2222
"@babel/core": "^7.24.0",
23-
"@testing-library/react-native": "^12.8.0",
23+
"@testing-library/react-native": "^13.0.0-alpha.1",
2424
"@types/eslint": "^8.56.10",
2525
"@types/jest": "^29.5.12",
2626
"@types/react": "~18.2.79",

examples/basic/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,22 +2463,22 @@ __metadata:
24632463
languageName: node
24642464
linkType: hard
24652465

2466-
"@testing-library/react-native@npm:^12.8.0":
2467-
version: 12.8.0
2468-
resolution: "@testing-library/react-native@npm:12.8.0"
2466+
"@testing-library/react-native@npm:^13.0.0-alpha.1":
2467+
version: 13.0.0-alpha.1
2468+
resolution: "@testing-library/react-native@npm:13.0.0-alpha.1"
24692469
dependencies:
24702470
jest-matcher-utils: "npm:^29.7.0"
24712471
pretty-format: "npm:^29.7.0"
24722472
redent: "npm:^3.0.0"
24732473
peerDependencies:
2474-
jest: ">=28.0.0"
2475-
react: ">=16.8.0"
2476-
react-native: ">=0.59"
2477-
react-test-renderer: ">=16.8.0"
2474+
jest: ">=29.0.0"
2475+
react: ">=18.2.0"
2476+
react-native: ">=0.71"
2477+
react-test-renderer: ">=18.2.0"
24782478
peerDependenciesMeta:
24792479
jest:
24802480
optional: true
2481-
checksum: 10c0/216d40eefc3afa3259b37611213dcd6667cd0b8deb30521a8aaabe3afc15f07116ce64acba150f8c88b8e268df80639baf6bc38f05af1dbbae247e1d07639bde
2481+
checksum: 10c0/48b5d2d32fc6e0d3adcaf2c4fad9106eaf3274bb0b441db1c3375a811d53242c972d065cab61c57b00156fe4d33db9bb8ef6b6b160d44ef7697bae3c627e6513
24822482
languageName: node
24832483
linkType: hard
24842484

@@ -8923,7 +8923,7 @@ __metadata:
89238923
resolution: "root-workspace-0b6124@workspace:."
89248924
dependencies:
89258925
"@babel/core": "npm:^7.24.0"
8926-
"@testing-library/react-native": "npm:^12.8.0"
8926+
"@testing-library/react-native": "npm:^13.0.0-alpha.1"
89278927
"@types/eslint": "npm:^8.56.10"
89288928
"@types/jest": "npm:^29.5.12"
89298929
"@types/react": "npm:~18.2.79"

examples/cookbook/jest-setup.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { configure } from '@testing-library/react-native';
22

3-
// Import built-in Jest matchers
4-
import '@testing-library/react-native/extend-expect';
53
import { server } from './app/network-requests/__tests__/test-utils';
64

75
// Silence the warning: Animated: `useNativeDriver` is not supported because the native animated module is missing
@@ -15,5 +13,3 @@ afterEach(() => server.resetHandlers());
1513

1614
// Disable API mocking after the tests are done
1715
afterAll(() => server.close());
18-
19-
configure({ concurrentRoot: true });

examples/cookbook/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"devDependencies": {
3131
"@babel/core": "^7.20.0",
3232
"@expo/metro-runtime": "~3.2.3",
33-
"@testing-library/react-native": "^12.8.0",
33+
"@testing-library/react-native": "^13.0.0-alpha.1",
3434
"@types/eslint": "^8.56.10",
3535
"@types/jest": "^29.5.12",
3636
"@types/react": "~18.2.45",

examples/cookbook/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2833,22 +2833,22 @@ __metadata:
28332833
languageName: node
28342834
linkType: hard
28352835

2836-
"@testing-library/react-native@npm:^12.8.0":
2837-
version: 12.8.0
2838-
resolution: "@testing-library/react-native@npm:12.8.0"
2836+
"@testing-library/react-native@npm:^13.0.0-alpha.1":
2837+
version: 13.0.0-alpha.1
2838+
resolution: "@testing-library/react-native@npm:13.0.0-alpha.1"
28392839
dependencies:
28402840
jest-matcher-utils: "npm:^29.7.0"
28412841
pretty-format: "npm:^29.7.0"
28422842
redent: "npm:^3.0.0"
28432843
peerDependencies:
2844-
jest: ">=28.0.0"
2845-
react: ">=16.8.0"
2846-
react-native: ">=0.59"
2847-
react-test-renderer: ">=16.8.0"
2844+
jest: ">=29.0.0"
2845+
react: ">=18.2.0"
2846+
react-native: ">=0.71"
2847+
react-test-renderer: ">=18.2.0"
28482848
peerDependenciesMeta:
28492849
jest:
28502850
optional: true
2851-
checksum: 10c0/216d40eefc3afa3259b37611213dcd6667cd0b8deb30521a8aaabe3afc15f07116ce64acba150f8c88b8e268df80639baf6bc38f05af1dbbae247e1d07639bde
2851+
checksum: 10c0/48b5d2d32fc6e0d3adcaf2c4fad9106eaf3274bb0b441db1c3375a811d53242c972d065cab61c57b00156fe4d33db9bb8ef6b6b160d44ef7697bae3c627e6513
28522852
languageName: node
28532853
linkType: hard
28542854

@@ -9762,7 +9762,7 @@ __metadata:
97629762
dependencies:
97639763
"@babel/core": "npm:^7.20.0"
97649764
"@expo/metro-runtime": "npm:~3.2.3"
9765-
"@testing-library/react-native": "npm:^12.8.0"
9765+
"@testing-library/react-native": "npm:^13.0.0-alpha.1"
97669766
"@types/eslint": "npm:^8.56.10"
97679767
"@types/jest": "npm:^29.5.12"
97689768
"@types/react": "npm:~18.2.45"

0 commit comments

Comments
 (0)