From a8feb49f1da06f0b9c5c160e940e35d0540beb8d Mon Sep 17 00:00:00 2001 From: curbengh <43627182+curbengh@users.noreply.github.com> Date: Mon, 22 Jul 2019 00:11:05 +0930 Subject: [PATCH] test: replace istanbul with nyc (#84) --- .gitignore | 2 +- .travis.yml | 3 ++- package.json | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 6c3666f..4124531 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,6 @@ node_modules/ tmp/ *.log .idea/ -coverage/ +.nyc_output/ package-lock.json yarn.lock diff --git a/.travis.yml b/.travis.yml index 4d3fbd4..af0ef3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,4 +18,5 @@ 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 4fc16a9..f0edd3b 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" @@ -41,8 +41,8 @@ "eslint": "^6.0.1", "eslint-config-hexo": "^3.0.0", "hexo": "^3.3.1", - "istanbul": "^0.4.5", - "mocha": "^6.0.2" + "mocha": "^6.0.2", + "nyc": "14.1.1" }, "engines": { "node": ">=8.6.0"