From 1f17805c2b382ae8e8ce754665e991d655d4f752 Mon Sep 17 00:00:00 2001 From: Anh Date: Mon, 25 Feb 2019 18:04:03 -0500 Subject: [PATCH] [Docs] `jest`: Update deprecated jest config key See #2013; #2015. --- docs/guides/react-native.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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