Skip to content

Commit

Permalink
chore: Fix coverage reports
Browse files Browse the repository at this point in the history
By adding `nyc` dependency, we can get complete coverage reports, both
as HTML and inline summary in CLI.
  • Loading branch information
mroderick committed Dec 23, 2023
1 parent 1c7a92e commit d9bde5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules
coverage
package-lock.json
.nyc_output/
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"dc:up": "docker-compose -f docker-compose.yml up -d",
"dc:down": "docker-compose -f docker-compose.yml down",
"test": "istanbul -v cover -- _mocha --recursive",
"test": "nyc --reporter=html --reporter=text mocha",
"debug-test": "mocha --inspect-brk lib/**/**.test.js",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"eslint": "eslint --quiet lib/**/**.js test/**/**.js",
Expand Down Expand Up @@ -53,6 +53,7 @@
"istanbul": "^1.1.0-alpha.1",
"memcached-mock": "^0.1.0",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"redis": "^4.6.8",
"redis-mock": "^0.48.0",
"sinon": "^5.0.10"
Expand Down

0 comments on commit d9bde5c

Please sign in to comment.