From c0d5bd52f83429163fbb39db0261763f1db6b789 Mon Sep 17 00:00:00 2001 From: Gnought <1684105+gnought@users.noreply.github.com> Date: Thu, 11 Jul 2019 21:37:40 +0800 Subject: [PATCH] Replace istanbul with nyc (#253) * Replace istanbul with nyc istanbul is not maintained anymore * Update .gitignore --- .gitignore | 3 ++- package.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 21ef4b7e..0f2ada3b 100644 --- a/.gitignore +++ b/.gitignore @@ -10,8 +10,9 @@ pids # Directory for instrumented libs generated by jscoverage/JSCover lib-cov -# Coverage directory used by tools like istanbul +# Coverage directory used by tools like nyc coverage +.nyc_output # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) .grunt diff --git a/package.json b/package.json index 00041eb3..2d8cd4c1 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "typescript-test": "npm run typescript-compile-test && npm run typescript-compile-execute", "test": "tape test/*.js test/*/*.js | faucet", "ci": "npm run lint && npm run typescript-test && npm run coverage", - "coverage": "istanbul cover tape test/*.js test/*/*.js", + "coverage": "nyc --reporter=lcov tape test/*.js test/*/*.js", "coveralls": "cat coverage/lcov.info | coveralls" }, "pre-commit": [ @@ -46,9 +46,9 @@ "coveralls": "^3.0.4", "duplexify": "^4.1.1", "faucet": "0.0.1", - "istanbul": "^0.4.5", "mqtt": "^3.0.0", "mqtt-connection": "^4.0.0", + "nyc": "^14.1.1", "pre-commit": "^1.2.2", "standard": "^12.0.1", "tape": "^4.10.2",