UNPKG

simple-vcr

Version:

SimpleVCR is a HTTP request interceptor that records and replays HTTP requests for testing.

18 lines (17 loc) 465 B
import nock from 'nock'; declare class SimpleVCR { private _fixtureName; private _specFolders; constructor(_fixtureName: string); on(): boolean | void; off(): void; private record; private recorderOptions; private stringifyRequests; private play; interceptAndReplyRequests(requests: string[] | nock.Definition[]): boolean; private getRequests; private hasFixture; private fixturePath; } export default SimpleVCR;