From 5941f83274005d2d994ca167ee7f063e570ebc18 Mon Sep 17 00:00:00 2001 From: weyusi Date: Mon, 8 Jul 2019 18:10:00 +0930 Subject: [PATCH] test: replace istanbul with nyc --- .gitignore | 2 +- .travis.yml | 2 +- package.json | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 241a5d3..19e149c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ node_modules/ tmp/ *.log .idea/ -coverage/ \ No newline at end of file +.nyc_output/ diff --git a/.travis.yml b/.travis.yml index 4d3fbd4..e78421b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,4 +18,4 @@ script: after_script: - npm install coveralls - - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js + - nyc report --reporter=text-lcov | coveralls diff --git a/package.json b/package.json index bfd0fb6..0a09b04 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "eslint": "eslint .", "test": "mocha test/index.js", - "test-cov": "istanbul cover --print both _mocha -- test/index.js" + "test-cov": "nyc npm run test" }, "directories": { "lib": "./lib" @@ -37,8 +37,8 @@ "eslint": "^6.0.1", "babel-eslint": "^10.0.1", "eslint-config-hexo": "^3.0.0", - "istanbul": "^0.4.5", - "mocha": "^6.1.4" + "mocha": "^6.1.4", + "nyc": "^14.1.1" }, "engines": { "node": ">=8.6.0"