Skip to main content

Interface: WiremockStubMapping

Defined in: src/sources.ts:39

A WireMock stub; fields besides request and response are passed through.

See​

Inline stubs

Indexable​

[field: string]: unknown

Properties​

PropertyModifierTypeDescriptionDefined in
requestreadonlyobjectWhat the stub matches, e.g. { method: "GET", url: "/ping" }.src/sources.ts:41
responsereadonlyobjectWhat it answers, e.g. { status: 200, body: "pong" }.src/sources.ts:43