Switch from nyc to c8
[poolifier.git] / package.json
index 34bf2d1259e36257a2f35ab1590b0b17d338dd6f..ef4325f93d62e3ad3430a762d6e615c89af7f32c 100644 (file)
     "benchmark": "npm run build && node -r source-map-support/register benchmarks/internal/bench.js",
     "benchmark:debug": "npm run build && node -r source-map-support/register --inspect benchmarks/internal/bench.js",
     "benchmark:prod": "npm run build:prod && node -r source-map-support/register benchmarks/internal/bench.js",
-    "test": "npm run build && nyc mocha 'tests/**/*.test.js'",
+    "test": "npm run build && c8 mocha 'tests/**/*.test.js'",
     "test:debug": "npm run build && mocha --no-parallel --inspect 'tests/**/*.test.js'",
-    "coverage": "nyc report --reporter=lcov",
-    "coverage:html": "nyc report --reporter=html",
+    "coverage": "c8 report --reporter=lcov",
+    "coverage:html": "c8 report --reporter=html",
     "format": "prettier --loglevel silent --write .; prettierx --write .",
     "lint": "eslint . --cache",
     "lint:fix": "eslint . --cache --fix",
@@ -70,6 +70,7 @@
     "@typescript-eslint/eslint-plugin": "^5.40.1",
     "@typescript-eslint/parser": "^5.40.1",
     "benchmark": "^2.1.4",
+    "c8": "^7.12.0",
     "eslint": "^8.25.0",
     "eslint-config-standard": "^17.0.0",
     "eslint-define-config": "^1.7.0",
@@ -86,7 +87,6 @@
     "microtime": "^3.1.1",
     "mocha": "^10.1.0",
     "mochawesome": "^7.1.3",
-    "nyc": "^15.1.0",
     "prettier": "^2.7.1",
     "prettier-plugin-organize-imports": "^3.1.1",
     "prettierx": "^0.18.3",