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

Commit

Permalink
Merge pull request #51 from tonymtz/patch-1
Browse files Browse the repository at this point in the history
Adding instructions when using Jest
  • Loading branch information
rtfpessoa committed Mar 1, 2018
2 parents f4a7f4e + 3a0bcd7 commit 8b768a3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,22 @@ Client-side JS code coverage using [PhantomJS](https://github.com/ariya/phantomj
npm run test-with-coverage
```

### [Jest](https://facebook.github.io/jest/)

* Add test with coverage step to your package.json:

```json
"scripts": {
"test-with-coverage": "jest --coverage && cat ./coverage/lcov.info | codacy-coverage"
}
```

* Run your tests with:

```sh
npm run test-with-coverage
```

## Extras

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

0 comments on commit 8b768a3

Please sign in to comment.