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

Commit 49561f6

Browse files
committed
Update README.md
1 parent e5be8b8 commit 49561f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,11 @@ npm run test-with-coverage
145145

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

148+
Note: [jest might return exit code 1](https://github.com/facebook/jest/issues/3520) if you defined a coverage threshold and the threshold is not met
149+
148150
```json
149151
"scripts": {
150-
"test-with-coverage": "jest --coverage || cat ./coverage/lcov.info | codacy-coverage"
152+
"test-with-coverage": "jest --coverage && cat ./coverage/lcov.info | codacy-coverage"
151153
}
152154
```
153155

0 commit comments

Comments
 (0)