Lupa API Reference / network/types / NetworkMockOptions
Interface: NetworkMockOptions
Defined in: src/network/types.ts:83
The configuration object used to register a new network mock.
Properties
match
match:
NetworkMatch
Defined in: src/network/types.ts:85
The criteria used to match requests against this mock.
respond
respond:
NetworkRespondPayload|NetworkRespondDynamic
Defined in: src/network/types.ts:87
The static payload or dynamic closure used to fulfill the matched request.
times?
optionaltimes?:number
Defined in: src/network/types.ts:92
The number of times this mock should intercept a request before expiring. If omitted, the mock persists for the lifetime of the test unless explicitly restored.