Skip to content

waygraph / runStubPhase

Function: runStubPhase() ​

runStubPhase(block, phase, opts?): Promise<StubPhaseResult>

Defined in: src/demo/narration/narration.ts:24

Runs a Block's stub for one phase and returns what it painted. Returns rings + episode fixtures (todos / todoIndex / zoom).

Parameters ​

block ​

SomeBlock

phase ​

HighlightStubPhaseName

opts? ​

error? ​

unknown

mem? ​

MemPage

out? ​

Checkpoint<string>

Returns ​

Promise<StubPhaseResult>

Example ​

ts
const before = await runStubPhase(block, "stubBefore", { mem });
// before.todos, before.highlights

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed