f
applyWatchLineTargets(config: Config): Promise<void>
Watch-mode line targets: narrow fsTree to the targeted files and apply their selectors for the whole session.
f
resolveTargetedFiles(): Promise<TargetedFile[]>
config: Config,
allFiles: string[]
Resolves each file#34 input into the selectors for that file, dropping targets whose file is
no longer in the run (a glob, --changed or --only-failed may have filtered it out) and
those that resolved to nothing — both fall back to running the file whole, which is what a
null selectors means. Every warning is surfaced; a line target that quietly did not narrow
is worse than one that says so.
f
splitIntoGroups(): Promise<{ groups: string[][]; weights: Map<string, number>; }>
files: string[],
groupCount: number,
timings: Record<string, number>
Packs files into groupCount groups of roughly equal estimated duration, returning the groups
and the per-file weights the estimate used (the caller reuses them to apportion wall time).
Usage
import * as mod from "lib/commands/test/grouping.ts";