diff --git a/docs/guides/react-native.md b/docs/guides/react-native.md index 326b360bc..f34fcdf25 100644 --- a/docs/guides/react-native.md +++ b/docs/guides/react-native.md @@ -52,22 +52,22 @@ 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 module.exports = { // Load setup-tests.js before test execution - setupTestFrameworkScriptFile: 'setup-tests.js', + setupFilesAfterEnv: 'setup-tests.js', // ... }; ``` -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