Skip to main content

measure_typescript

Function measure_typescript 

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

Run the unit suite under vitest coverage in root and check it against thresholds.

Shells out to npx vitest run with v8 coverage and the json-summary reporter, excluding *.test.*, declaration files, and every path in exclude from the denominator, then evaluates the report. exclude holds the coverage-rule exemptions resolved from config, as root-relative paths. npx resolves the project-local vitest, so it and @vitest/coverage-v8 must be installed under root.