Skip to content

Commit

Permalink
Edited readme file to update global installation section (styled-comp…
Browse files Browse the repository at this point in the history
…onents#288)

* Edited readme file to update global installation section

* Update README.md

Co-authored-by: Evan Jacobs <probablyup@gmail.com>
  • Loading branch information
mladenstojanovic and quantizor committed Jan 25, 2020
1 parent e9ef3e0 commit a9117d4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,15 +436,7 @@ import 'jest-styled-components/native'
# Global installation
It is possible to setup this package for all the tests using the [setupFilesAfterEnv](https://jestjs.io/docs/en/configuration#setupfilesafterenv-array) option:
```js
"jest": {
"setupFilesAfterEnv": ["./setupTest.js"]
}
```
And import the library once in the `setupTest.js` as follows:
It is possible to setup this package for all the tests. Import the library once in the `src/setupTests.js` as follows:
```js
import 'jest-styled-components'
Expand Down

0 comments on commit a9117d4

Please sign in to comment.