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

Commit e5be8b8

Browse files
authored
Don't depend on jest exit code
Changed script to execute independently of jest error code. Looks like jest returns exit code 1 if coverage is under the defined goal when running in npm scripts: jestjs/jest#3520
1 parent 149e9c2 commit e5be8b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ npm run test-with-coverage
147147

148148
```json
149149
"scripts": {
150-
"test-with-coverage": "jest --coverage && cat ./coverage/lcov.info | codacy-coverage"
150+
"test-with-coverage": "jest --coverage || cat ./coverage/lcov.info | codacy-coverage"
151151
}
152152
```
153153

0 commit comments

Comments
 (0)