feat(12-01): add c8 coverage tooling with 70% line threshold

This commit is contained in:
Ethan Hurst
2026-02-25 19:32:21 +10:00
parent 17299b6819
commit 97d2136c5d
3 changed files with 707 additions and 2 deletions

View File

@@ -38,13 +38,14 @@
"engines": {
"node": ">=16.7.0"
},
"dependencies": {},
"devDependencies": {
"c8": "^11.0.0",
"esbuild": "^0.24.0"
},
"scripts": {
"build:hooks": "node scripts/build-hooks.js",
"prepublishOnly": "npm run build:hooks",
"test": "node --test tests/*.test.cjs"
"test": "node --test tests/*.test.cjs",
"test:coverage": "c8 --check-coverage --lines 70 --reporter text --include 'get-shit-done/bin/lib/*.cjs' --exclude 'get-shit-done/bin/gsd-tools.cjs' --exclude 'tests/**' --all node --test tests/*.test.cjs"
}
}