Skip to content

Commit

Permalink
Update Global installation instructions (styled-components#243)
Browse files Browse the repository at this point in the history
* Update Global installation instructions

`setupTestFrameworkScriptFile` is now `setupFilesAfterEnv`. https://jestjs.io/docs/en/configuration#setupfilesafterenv-array

* Update link
  • Loading branch information
adrw authored and quantizor committed Jun 17, 2019
1 parent c8159a3 commit f2f98c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,11 @@ import 'jest-styled-components/native'
# Global installation
It is possibile to setup this package for all the tests using the [setupTestFrameworkScriptFile](https://facebook.github.io/jest/docs/en/configuration.html#setuptestframeworkscriptfile-string) option:
It is possibile to setup this package for all the tests using the [setupFilesAfterEnv](https://jestjs.io/docs/en/configuration#setupfilesafterenv-array) option:
```js
"jest": {
"setupTestFrameworkScriptFile": "./setupTest.js"
"setupFilesAfterEnv": ["./setupTest.js"]
}
```
Expand Down

0 comments on commit f2f98c6

Please sign in to comment.