ci: print exact uncovered locations when the coverage gate fails

The per-file 100% thresholds name only the failing file. A custom istanbul
reporter now prints one clickable path:line:col record per uncovered
statement, branch path, and function, right above the threshold errors, in
both the CI coverage lane and local test:coverage runs (they share this
config). CJS because istanbul-reports loads custom reporters with a bare
require() outside the tsx/ESM pipeline.
This commit is contained in:
imccyu
2026-08-06 03:18:17 +08:00
parent 17ff1e0d4a
commit 4f7b9ac5ee
6 changed files with 127 additions and 3 deletions

View File

@@ -20,11 +20,13 @@
"workspaces": {
".": {
"entry": [
"scripts/**/*.mjs"
"scripts/**/*.mjs",
"scripts/**/*.cjs"
],
"project": [
"scripts/**/*.ts",
"scripts/**/*.mjs"
"scripts/**/*.mjs",
"scripts/**/*.cjs"
],
"ignoreDependencies": [
"playwright"