Functions

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(
config: Config,
allFiles: string[]
): Promise<TargetedFile[]>

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(
files: string[],
groupCount: number,
timings: Record<string, number>
): Promise<{ groups: string[][]; weights: Map<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).

Interfaces