From a2fc8c0f9bb9288d0dc106b1361ec0de63f50672 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Thu, 25 Aug 2022 02:56:57 +0800 Subject: [PATCH] test: replace nyc with c8 (#5040) --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b2c2a960e1..176f0c351e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "eslint": "eslint .", "test": "mocha test/index.js", - "test-cov": "nyc --reporter=lcovonly npm test -- --no-parallel", + "test-cov": "c8 --reporter=lcovonly npm test -- --no-parallel", "prepare": "husky install" }, "directories": { @@ -54,8 +54,8 @@ "moize": "^6.1.0", "moment": "^2.29.1", "moment-timezone": "^0.5.34", - "picocolors": "^1.0.0", "nunjucks": "^3.2.3", + "picocolors": "^1.0.0", "pretty-hrtime": "^1.0.3", "resolve": "^1.22.0", "strip-ansi": "^6.0.0", @@ -67,6 +67,7 @@ "devDependencies": { "@easyops/git-exec-and-restage": "^1.0.4", "0x": "^5.1.2", + "c8": "^7.12.0", "chai": "^4.3.6", "cheerio": "0.22.0", "decache": "^4.6.1", @@ -76,7 +77,6 @@ "husky": "^7.0.4", "lint-staged": "^11.0.0", "mocha": "^10.0.0", - "nyc": "^15.1.0", "sinon": "^13.0.2" }, "engines": {