UNPKG

@amadeus-it-group/kassette

Version:

Development server, used mainly for testing, which proxies requests and is able to easily manage local mocks.

43 lines (42 loc) 1.38 kB
declare const _default: { /** The name of the file containing the serialized data representing the mock */ dataFilename: string; inputRequestBaseFilename: string; forwardedRequestBaseFilename: string; checksumFilename: string; /** A static list of headers to ignore when serving the mock */ ignoredHeaders: Set<string>; /** Default values for an empty mock payload */ emptyPayload: { data: { headers: {}; ignoredHeaders: {}; /** The status code we want the mock to have */ status: { code: number; message: string; }; time: number; }; /** The content type we want the body file to have */ bodyContentType: string; body: {}; }; /** The set of messages displayed to the end user */ messages: { writingHarFile: string; writingInputRequestData: string; writingInputRequestBody: string; writingForwardedRequestData: string; writingForwardedRequestBody: string; writingData: string; writingBody: string; writingChecksumFile: string; servingMockDirectly: string; inexistentMock: string; alreadyExistingMock: string; fetchingMock: string; requestFailed: string; }; }; export default _default;