From d9bde5c137c8568bffa8c3382d2d3754064e6bfb Mon Sep 17 00:00:00 2001 From: Morgan Roderick Date: Sat, 23 Dec 2023 21:10:31 +0100 Subject: [PATCH] chore: Fix coverage reports By adding `nyc` dependency, we can get complete coverage reports, both as HTML and inline summary in CLI. --- .gitignore | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 93ce166..c24685b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules coverage package-lock.json +.nyc_output/ diff --git a/package.json b/package.json index c63b2fd..ce71c16 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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"