Skip to content

Commit a9117d4

Browse files
Edited readme file to update global installation section (#288)
* Edited readme file to update global installation section * Update README.md Co-authored-by: Evan Jacobs <[email protected]>
1 parent e9ef3e0 commit a9117d4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -436,15 +436,7 @@ import 'jest-styled-components/native'
436436
437437
# Global installation
438438
439-
It is possible to setup this package for all the tests using the [setupFilesAfterEnv](https://jestjs.io/docs/en/configuration#setupfilesafterenv-array) option:
440-
441-
```js
442-
"jest": {
443-
"setupFilesAfterEnv": ["./setupTest.js"]
444-
}
445-
```
446-
447-
And import the library once in the `setupTest.js` as follows:
439+
It is possible to setup this package for all the tests. Import the library once in the `src/setupTests.js` as follows:
448440
449441
```js
450442
import 'jest-styled-components'

0 commit comments

Comments
 (0)