f
clearBundles(build: BuildState): void
Invalidates a group's compiled bundles so the next run rebuilds them from disk.
f
create(): RunState
Fresh run state for a single qunitx invocation. Built once per run in Config.setup().
f
newGroup(): GroupState
index?: number,
selectors?: QUnitSelector[]
Fresh per-group state. One per concurrent group; the group spread in runConcurrentMode
replaces state.group with this so groups never share the slots inside it.
f
requestAbort(state: RunState): void
Asks every live server to tell its pages to drop the rest of the QUnit queue, and records that this run was cut short.
f
reset(): void
results: RunResults,
coverageEnabled: boolean
Clears the run accumulators in place for a re-run.
f
reusablePageSlot(state: RunState): { page: Page | null; } | null
The daemon's reusable Page slot, or null when reuse does not apply.
Usage
import * as mod from "lib/setup/run-state.ts";