Skip to content

Commit ebeaa8d

Browse files
committed
chore: strict coverage check, close #38
1 parent 99de578 commit ebeaa8d

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,8 @@ workflows:
1818
path: coverage
1919
# print code coverage summary to the terminal
2020
- run: npx nyc report
21+
# check if the coverage includes calc.js and it is covered at 100%
22+
# https://github.com/bahmutov/check-code-coverage
23+
- run: npx check-coverage calc.js
24+
- run: npx only-covered calc.js
2125

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"devDependencies": {
3434
"@cypress/code-coverage": "3.0.1",
3535
"babel-plugin-istanbul": "5.2.0",
36+
"check-code-coverage": "1.0.1",
3637
"cypress": "4.3.0",
3738
"jest": "24.9.0"
3839
},

0 commit comments

Comments
 (0)