From b01fffd259676f305c53ff99175f6739c52208fe Mon Sep 17 00:00:00 2001 From: yoshinorin Date: Thu, 15 Sep 2022 00:44:20 +0900 Subject: [PATCH] test: replace nyc with c8 --- .gitignore | 2 +- package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 0cbd2b4..7f8dde4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ node_modules/ tmp/ *.log .idea/ -.nyc_output/ \ No newline at end of file +coverage \ No newline at end of file diff --git a/package.json b/package.json index f9e36c4..4317c0c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "eslint": "eslint .", "test": "mocha test/index.js", - "test-cov": "nyc --reporter=lcovonly npm run test" + "test-cov": "c8 --reporter=lcovonly npm run test" }, "directories": { "lib": "./lib" @@ -30,10 +30,10 @@ "sprintf-js": "^1.1.2" }, "devDependencies": { + "c8": "^7.12.0", "chai": "^4.3.4", "eslint": "^8.6.0", "eslint-config-hexo": "^5.0.0", - "mocha": "^9.2.0", - "nyc": "^15.1.0" + "mocha": "^9.2.0" } }