Skip to content

waygraph / ExpectList

Type Alias: ExpectList<Out> ​

ExpectList<Out> = readonly Expectation<Out>[] | { readonly [K in Out["__state"]]?: readonly Expectation<Extract<Out, Checkpoint<K>>>[] }

Defined in: src/engine/block/kinds/expect.ts:79

What a Block or a step expects after it runs: a list, or - for a Block that can land in several places - a list per outcome, each typed to its own Checkpoint.

Type Parameters ​

Out ​

Out extends Checkpoint<string>

Examples ​

ts
expect: [ExpectArchivedToastBlock, Machine.status.is("Archived")]
ts
expect: { EquipmentDetail: [ExpectSavedToastBlock], EquipmentAdd: [ExpectNameRequiredBlock] }

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