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?
optionalabort?:boolean
Defined in: src/engine/flow/world.ts:22
Fail the request as a network error.
body?
optionalbody?:string
Defined in: src/engine/flow/world.ts:20
delayMs?
optionaldelayMs?:number
Defined in: src/engine/flow/world.ts:24
Hold the request this long, then let it through (or answer as above).
status?
optionalstatus?: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