From 6f537e109dadaab23e878b69d446d1d0afcb8fc3 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 6 Aug 2021 18:01:41 +0200 Subject: [PATCH] Replace `nyc` with `c8` --- .gitignore | 5 ++--- package.json | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index fdefc8c..33d4929 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ -.DS_Store -*.log -.nyc_output/ coverage/ node_modules/ +.DS_Store +*.log yarn.lock diff --git a/package.json b/package.json index aeec756..ca10453 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "unist-util-visit": "^2.0.0" }, "devDependencies": { - "nyc": "^15.0.0", + "c8": "^7.0.0", "prettier": "^2.0.0", "remark": "^13.0.0", "remark-cli": "^9.0.0", @@ -50,8 +50,8 @@ }, "scripts": { "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", - "test-api": "node test", - "test-coverage": "nyc --reporter lcov tape test.js", + "test-api": "node --conditions development test.js", + "test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api", "test": "npm run format && npm run build && npm run test-coverage" }, "prettier": {