You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/testing.md
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ Then we need to use this setup file in our jest config. You can add it under `se
48
48
49
49
Make sure that the path to the file in `setupFiles` is correct. Jest will run these files before running your tests, so it's the best place to put your global mocks.
50
50
51
-
If your configuration works correctly, you can skip this section, but in some unusual cases you will need to mock `react-native-screen` as well. To do so add the following code in `jest/setup.js` file:
51
+
If your configuration works correctly, you can skip this section, but in some unusual cases you will need to mock `react-native-screens` as well. To do so add the following code in `jest/setup.js` file:
52
52
53
53
```js
54
54
// Include this section form mocking react-native-screens
@@ -74,7 +74,7 @@ If you're not using Jest, then you'll need to mock these modules according to th
74
74
75
75
We recommend using [React Native Testing Library](https://callstack.github.io/react-native-testing-library/) along with [`jest-native`](https://github.com/testing-library/jest-native) to write your tests.
76
76
77
-
We are going to write example tests illustrating difference between navigate and push functions using Root Navigator defined below:
77
+
We are going to write example tests illustrating the difference between navigate and push functions using Root Navigator defined below:
78
78
79
79
<TabsgroupId="example"queryString="example">
80
80
<TabItemvalue="static"label="Static"default>
@@ -147,10 +147,13 @@ Navigate function test example:
0 commit comments