Skip to content

rulvar API reference


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

ParameterTypeDescription
options{ adapters?: ProviderAdapter[]; cassette: string; onMiss: "throw" | "passthrough"; }-
options.adapters?ProviderAdapter[]Live adapters for the passthrough mode.
options.cassettestring-
options.onMiss"throw" | "passthrough"-

Returns

ProviderAdapter[]