Skip to content

MockTransport

Defined in: packages/gateway/src/testing/mock-transport.ts:46

A transport that replays a script, with the requests it has received so far.

MockTransport(request): Promise<Response>

Defined in: packages/gateway/src/testing/mock-transport.ts:47

A transport that replays a script, with the requests it has received so far.

Request

Promise<Response>

readonly requests: readonly RecordedRequest[]

Defined in: packages/gateway/src/testing/mock-transport.ts:49

Every request received so far, in order.

These docs are licensedCC BY 4.0. Thelicence text is in the repository.