Skip to content

Commit 7b159a4

Browse files
Fixed broken link of mock setup file (#673)
1 parent 2aa6609 commit 7b159a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/docs/ReactNavigation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Install required dev dependencies:
266266
$ yarn add -D jest @testing-library/react-native
267267
```
268268

269-
Create a [`mock file`](https://github.com/callstack/react-native-testing-library/blob/master/examples/reactnavigation/jest-mocks.js) necessary for your tests:
269+
Create a [`mock file`](https://github.com/callstack/react-native-testing-library/blob/master/examples/reactnavigation/jest-setup.js) necessary for your tests:
270270

271271
```jsx
272272
import 'react-native-gesture-handler/jestSetup';
@@ -290,7 +290,7 @@ Create your `jest.config.js` file (or place the following properties in your `pa
290290
```js
291291
module.exports = {
292292
preset: 'react-native',
293-
setupFiles: ['./jest-mocks.js'],
293+
setupFiles: ['./jest-setup.js'],
294294
transformIgnorePatterns: [
295295
'node_modules/(?!(jest-)?react-native|@react-native-community|@react-navigation)',
296296
],

0 commit comments

Comments
 (0)