Skip to main content

find_unit_violations

Function find_unit_violations 

Source
pub fn find_unit_violations(root: impl AsRef<Path>) -> Result<Vec<Violation>>
Expand description

Scan the unit test files under root and return every isolation violation — a runtime import that isn’t vi.mock()-ed (#76) — sorted by (file, line). The TypeScript arm of unit isolation (crate::isolation::Language::TypeScript).

A TypeScript unit test is *.test.{ts,tsx,mts,cts}. Each is parsed and walked; a file that cannot be read or parsed is an error.