Skip to content

Commit

Permalink
Update deprecated jest config key
Browse files Browse the repository at this point in the history
  • Loading branch information
VGoose committed Feb 26, 2019
1 parent 40b8153 commit 6d4f81f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guides/react-native.md
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6d4f81f

Please sign in to comment.