Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 8b768a3

Browse files
authored
Merge pull request #51 from tonymtz/patch-1
Adding instructions when using Jest
2 parents f4a7f4e + 3a0bcd7 commit 8b768a3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,22 @@ Client-side JS code coverage using [PhantomJS](https://github.com/ariya/phantomj
136136
npm run test-with-coverage
137137
```
138138

139+
### [Jest](https://facebook.github.io/jest/)
140+
141+
* Add test with coverage step to your package.json:
142+
143+
```json
144+
"scripts": {
145+
"test-with-coverage": "jest --coverage && cat ./coverage/lcov.info | codacy-coverage"
146+
}
147+
```
148+
149+
* Run your tests with:
150+
151+
```sh
152+
npm run test-with-coverage
153+
```
154+
139155
## Extras
140156

141157
### Force custom language (e.g. Typescript, Coffeescript, C, ...)

0 commit comments

Comments
 (0)