wiremock-mapper
Version:
DSL for setting up WireMock mappings.
21 lines (20 loc) • 931 B
TypeScript
import { MatcherOptions } from './configuration';
interface JestMatcherResult {
pass: boolean;
message: () => string;
}
export declare const wiremockMapperMatchers: {
toHaveBeenRequested(stubId: string, options?: Partial<MatcherOptions>): Promise<JestMatcherResult>;
toHaveBeenRequestedWith(stubId: string, expected: unknown, options?: Partial<MatcherOptions>): Promise<JestMatcherResult>;
toHaveBeenRequestedTimes(stubId: string, expectedCount: number, options?: Partial<MatcherOptions>): Promise<JestMatcherResult>;
};
declare global {
namespace jest {
interface Matchers<R> {
toHaveBeenRequested(options?: Partial<MatcherOptions>): Promise<R>;
toHaveBeenRequestedWith(expected: unknown, options?: Partial<MatcherOptions>): Promise<R>;
toHaveBeenRequestedTimes(expectedCount: number, options?: Partial<MatcherOptions>): Promise<R>;
}
}
}
export {};