Skip to content

Commit

Permalink
Chore(coverage): Add nyc configuration and update test coverage commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mertssmnoglu committed Feb 7, 2024
1 parent fa654ce commit 739da9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"reporter": ["lcov"],
"all": true,
"check-coverage": true,
"branches": 80,
"lines": 80,
"functions": 80,
"statements": 80
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"scripts": {
"test": "mocha test/**/*Test.js",
"samples": "mocha samples/**/*Samples.js",
"cover": "istanbul cover _mocha",
"coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls"
"cover": "nyc npm test",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -40,7 +40,8 @@
"coveralls": "^2.11.6",
"istanbul": "^0.4.2",
"mocha": "^10.2.0",
"mocha-lcov-reporter": "^1.0.0",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^15.1.0",
"should": "^8.2.1"
}
}

0 comments on commit 739da9e

Please sign in to comment.