/** * The keys of one entry in Vitest's `coverage-summary.json`. Two readers check * that file: the CI evidence validator (ci-artifact-validator.ts) and the risk * coverage gate (risk-coverage.ts). They kept separate lists, and the * validator refused `branchesTrue` while the gate accepted it, so FE-GATE-005 * failed at its evidence step after every test had passed (1103/12-09). */ /** The four metrics both readers evaluate. */ export const COVERAGE_SUMMARY_METRICS = Object.freeze([ "lines", "statements", "functions", "branches", ] as const); /** * Keys the reporter may add. istanbul-lib-coverage 3.2.2 puts `branchesTrue` * in every blank summary, so the total always carries it. Each is still * checked as a counter; neither reader evaluates it. */ export const COVERAGE_SUMMARY_OPTIONAL_METRICS = Object.freeze([ "branchesTrue", ] as const);