Switch from nyc to c8

This commit is contained in:
Kuba Orlik 2025-03-27 20:13:24 +01:00
parent e18603c91c
commit 2d31508501
2 changed files with 256 additions and 772 deletions

1018
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,12 +22,10 @@
"prepare": "husky", "prepare": "husky",
"lint": "eslint src", "lint": "eslint src",
"lint-report": "npm run --silent lint -- --format json > .eslint-result.json", "lint-report": "npm run --silent lint -- --format json > .eslint-result.json",
"preinstrument": "npm run build --ignore-scripts && rm -fr .xunit coverage dist-instrumented", "pretest-reports": "npm run build --ignore-scripts && rm -fr .xunit coverage",
"instrument": "npx nyc instrument --exclude \"\" dist dist-instrumented", "test-reports": "npx c8 --exclude \"\" ./node_modules/.bin/mocha --recursive --timeout=10000 --require source-map-support/register 'dist/**/*.test.js' --exit && c8 report --reporter cobertura --exclude \"\"",
"pretest-reports": "npm run instrument",
"test-reports": "npx nyc --exclude \"\" ./node_modules/.bin/mocha --recursive --timeout=10000 --require source-map-support/register 'dist-instrumented/**/*.test.js' --exit && nyc report --reporter cobertura --exclude \"\"",
"precover-html": "rm -rf coverate/lcov-report", "precover-html": "rm -rf coverate/lcov-report",
"cover-html": "npm run test-reports && nyc report --reporter lcov --exclude \"\" && xdg-open coverage/lcov-report/index.html" "cover-html": "npm run test-reports && c8 report --reporter lcov --exclude \"\" && xdg-open coverage/lcov-report/index.html"
}, },
"tmux-scripts": { "tmux-scripts": {
"watch": [ "watch": [
@ -89,6 +87,7 @@
"@types/leaflet": "^1.9.8", "@types/leaflet": "^1.9.8",
"@types/object-hash": "^3.0.6", "@types/object-hash": "^3.0.6",
"@types/simplemde": "^1.11.11", "@types/simplemde": "^1.11.11",
"c8": "^10.1.3",
"colord": "^2.9.3", "colord": "^2.9.3",
"dotenv": "^16.4.5", "dotenv": "^16.4.5",
"escape-goat": "^4.0.0", "escape-goat": "^4.0.0",
@ -132,7 +131,6 @@
"kill-port": "^1.6.1", "kill-port": "^1.6.1",
"mocha": "^10.4.0", "mocha": "^10.4.0",
"mri": "^1.2.0", "mri": "^1.2.0",
"nyc": "^15.1.0",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"stylelint": "^16.10.0", "stylelint": "^16.10.0",
"stylelint-config-standard": "^36.0.1", "stylelint-config-standard": "^36.0.1",