From 212570b6971a732b8dd9f3c73354bcdda158a737 Mon Sep 17 00:00:00 2001 From: Andres Rojas Date: Wed, 29 May 2019 21:53:20 +0200 Subject: [PATCH] Use nyc instead of istanbul (#3169) * Use nyc instead of istanbul istanbul package is not longer maintained * Have nyc output an lcov coverage report --- .gitignore | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9a254ab59..214a2ec7c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ coverage .idea npm-debug.log package-lock.json +.nyc_output \ No newline at end of file diff --git a/package.json b/package.json index 57a9c5454..86e4266bf 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "scripts": { "test": "npm run lint && npm run test-ci && npm run test-browser", "test-ci": "taper tests/test-*.js", - "test-cov": "istanbul cover tape tests/test-*.js", + "test-cov": "nyc --reporter=lcov tape tests/test-*.js", "test-browser": "node tests/browser/start.js", "lint": "standard" }, @@ -63,13 +63,13 @@ "codecov": "^3.0.4", "coveralls": "^3.0.2", "function-bind": "^1.0.2", - "istanbul": "^0.4.0", "karma": "^3.0.0", "karma-browserify": "^5.0.1", "karma-cli": "^1.0.0", "karma-coverage": "^1.0.0", "karma-phantomjs-launcher": "^1.0.0", "karma-tap": "^3.0.1", + "nyc": "^14.1.1", "phantomjs-prebuilt": "^2.1.3", "rimraf": "^2.2.8", "server-destroy": "^1.0.1",