pub fn measure_patch_typescript(
root: &Path,
exclude: &[String],
) -> Result<BTreeMap<String, BTreeSet<u64>>>Expand description
Run the TypeScript unit suite under vitest in root and return the uncovered
lines per file — keyed by the absolute path vitest reports, the caller
re-keying to root-relative to match the diff. A line is uncovered when it
carries a statement the suite never executed, or the source of a branch a path
of which the suite never took (the v8 analogue of the Python arm’s missing line
/ missing branch). exclude is the coverage-rule exemptions, dropped from the
run so an exempt file’s changed lines are lifted. npx resolves the
project-local vitest, so it and @vitest/coverage-v8 must be installed under
root.