From fc384779ab415cdfd3f0a109442763e24033f0fe Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 13 Aug 2021 12:07:49 +0200 Subject: [PATCH] Replace `nyc` with `c8` --- .gitignore | 1 - package.json | 12 +++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 0f66f24..04b3929 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .DS_Store *.log -.nyc_output/ coverage/ node_modules/ packages/franc-all/index.js diff --git a/package.json b/package.json index 17aab40..f42154d 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,13 @@ "author": "Titus Wormer (http://wooorm.com)", "devDependencies": { "alpha-sort": "^3.0.0", + "c8": "^7.0.0", "format": "^0.2.0", "human-format": "^0.11.0", "is-hidden": "^1.0.0", "iso-639-3": "^2.0.0", "lerna": "^3.0.0", "negate": "^1.0.0", - "nyc": "^15.0.0", "parse-author": "^2.0.0", "prettier": "^2.0.0", "remark-cli": "^9.0.0-alpha.1", @@ -37,16 +37,10 @@ "postinstall": "lerna bootstrap --no-ci", "generate": "node script/build", "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", - "test-api": "node test", - "test-coverage": "nyc --reporter lcov tape test/index.js", + "test-api": "node --conditions development test/index.js", + "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api", "test": "npm run generate && npm run format && npm run test-coverage" }, - "nyc": { - "check-coverage": true, - "lines": 100, - "functions": 100, - "branches": 100 - }, "prettier": { "tabWidth": 2, "useTabs": false,