From 85864518629255b77978bbb830a0dde1d4987283 Mon Sep 17 00:00:00 2001 From: Gnought <1684105+gnought@users.noreply.github.com> Date: Thu, 11 Jul 2019 16:34:58 +0800 Subject: [PATCH 1/2] Replace istanbul with nyc istanbul is not maintained anymore --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", From d418ad46a8e98a987a8b10823af98ef6d1b3d186 Mon Sep 17 00:00:00 2001 From: Gnought <1684105+gnought@users.noreply.github.com> Date: Thu, 11 Jul 2019 17:49:20 +0800 Subject: [PATCH 2/2] Update .gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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