Skip to content

Commit

Permalink
Merge pull request #23 from mertssmnoglu/21-nyc-code-coverage
Browse files Browse the repository at this point in the history
Code coverage via nyc
  • Loading branch information
mertssmnoglu authored May 21, 2024
2 parents 613c352 + 67cce51 commit ab159a0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
10 changes: 10 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"reporter": ["lcov"],
"all": true,
"check-coverage": true,
"branches": 50,
"lines": 50,
"functions": 50,
"statements": 50,
"exclude": ["dist/", "coverage/", "docs", ".nyc_output/", "test/"]
}
19 changes: 9 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"scripts": {
"lint": "eslint .",
"test": "mocha test/**/*spec.ts",
"makeCodeCoverageDetailReport": "nyc --all --exclude migrations --exclude coverage --exclude test --reporter lcov --reporter html npm test -- --reporter dot && echo \"*** Code coverage report done, checkout ./coverage dir\"",
"makeCodeCoverageSummaryReport": "nyc --all --exclude migrations --exclude coverage --exclude test --reporter text-summary npm test -- --reporter dot"
"coverage": "nyc npm test"
},
"keywords": [
"express-rate-limit",
Expand Down

0 comments on commit ab159a0

Please sign in to comment.