Skip to content

Fixed broken link of mock setup file #673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/docs/ReactNavigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Install required dev dependencies:
$ yarn add -D jest @testing-library/react-native
```

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

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