rulvar API reference / @rulvar/testing / replay
Function: replay()
ts
function replay(options): ProviderAdapter[];Defined in: packages/testing/src/vcr.ts:208
Builds replay adapters from a cassette. onMiss: 'throw' is the hermetic CI mode; 'passthrough' forwards unrecorded requests to the matching live adapter in adapters (a development convenience only).
Parameters
| Parameter | Type | Description |
|---|---|---|
options | { adapters?: ProviderAdapter[]; cassette: string; onMiss: "throw" | "passthrough"; } | - |
options.adapters? | ProviderAdapter[] | Live adapters for the passthrough mode. |
options.cassette | string | - |
options.onMiss | "throw" | "passthrough" | - |