From a3f9a4b1a56207db3ad9591141ad17c21cede3e1 Mon Sep 17 00:00:00 2001 From: Thakur Ballary Date: Sun, 28 Feb 2021 22:19:37 +0530 Subject: [PATCH] Fixed broken link of mock setup file --- website/docs/ReactNavigation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/ReactNavigation.md b/website/docs/ReactNavigation.md index e4db5f1b4..611c5f5f0 100644 --- a/website/docs/ReactNavigation.md +++ b/website/docs/ReactNavigation.md @@ -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'; @@ -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)', ],