UNPKG

cypress-contract-stubs

Version:

Cypress plugin for Spring Contract Stubs

44 lines (43 loc) 968 B
export interface ArchiveEntry { path: string; type: number; } export interface StubMatcher { equalTo?: string; matches?: string; } export interface StubRequest { method?: string; url?: string; urlPath?: string; urlPattern?: string; urlPathPattern?: string; queryParameters?: Record<string, StubMatcher>; headers?: Record<string, StubMatcher>; } export interface StubResponse { status?: number; body?: any; headers?: Record<string, string>; transformers?: string[]; } export interface StubEntry { id: string; request: StubRequest; response: StubResponse; uuid: string; name: string; consumer?: string; priority?: number; } export declare type StubEntries = StubEntry[]; /** * Array containing all stubs entries */ export declare const stubEntries: StubEntries; /** * Append stub entries * * @param stubs */ export declare function storeStubEntries(stubs: StubEntries): void;