Skip to content

waygraph / Fault

Interface: Fault ​

Defined in: src/engine/flow/world.ts:16

A request that goes wrong on purpose: url is a glob (**/api/orders). Answer with status, abort, or delayMs first.

Properties ​

abort? ​

optional abort?: boolean

Defined in: src/engine/flow/world.ts:22

Fail the request as a network error.


body? ​

optional body?: string

Defined in: src/engine/flow/world.ts:20


delayMs? ​

optional delayMs?: number

Defined in: src/engine/flow/world.ts:24

Hold the request this long, then let it through (or answer as above).


status? ​

optional status?: number

Defined in: src/engine/flow/world.ts:19

Answer with this status (and body) instead of reaching the server.


url ​

url: string

Defined in: src/engine/flow/world.ts:17

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