Skip to content

waygraph / seedMemStub

Function: seedMemStub() ​

seedMemStub(mem, flow): void

Defined in: src/engine/mem/mem-stub.ts:84

Fills each key the flow's steps require and mem doesn't have from its mem stub. A flow with map({ memStub: true }) does this itself when it runs; call it for a flow without, to use the stubs anyway.

Parameters ​

mem ​

MemPage

flow ​

Flow<Checkpoint<string>>

Returns ​

void

Example ​

ts
seedMemStub(mem, flow); await flow.run(context, mem);

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