diff --git a/docs/guides/react-native.md b/docs/guides/react-native.md index 8ecd43595..f34fcdf25 100644 --- a/docs/guides/react-native.md +++ b/docs/guides/react-native.md @@ -52,9 +52,9 @@ expect(wrapper.findWhere(node => node.prop('testID') === 'todo-item')).toExist() ## Example configuration for Jest To perform the necessary configuration in your testing framework, it is recommended to use a setup script, -such as with Jest's `setupTestFrameworkScriptFile` setting. +such as with Jest's `setupFilesAfterEnv` setting. -Create or update a `jest.config.js` file at the root of your project to include the `setupTestFrameworkScriptFile` setting: +Create or update a `jest.config.js` file at the root of your project to include the `setupFilesAfterEnv` setting: ```jsx // jest.config.js @@ -67,7 +67,7 @@ module.exports = { }; ``` -Then create or update the file specified in `setupTestFrameworkScriptFile`, in this case `setup-tests.js` in the project root: +Then create or update the file specified in `setupFilesAfterEnv`, in this case `setup-tests.js` in the project root: ```jsx // setup-tests.js