Skip to main content

measure_typescript

Function measure_typescript 

Source
pub fn measure_typescript(
    root: &Path,
    base: &str,
    thresholds: TypeScriptThresholds,
    exclude: &[String],
    exempt_lines: &BTreeMap<String, BTreeSet<u32>>,
) -> Result<Outcome>
Expand description

Diff-scoped TypeScript coverage floor: the four vitest metrics measured over the <base>...HEAD changed .ts/.tsx/.mts/.cts lines instead of the whole tree. exclude is the coverage-rule exemptions; an excluded file’s lines drop out with it.