@thisisagile/easy-test
Version:
Straightforward library for testing microservices built with @thisisagile/easy
20 lines (19 loc) • 660 B
TypeScript
import { Message } from '../utils/Types';
export declare const Passes: {
Yes: string;
No: (reason: string) => string;
};
export declare const PassesWith: {
Yes: string;
No: (message: string, instead: string) => string;
};
export declare const toPassMatcher: (result: jest.CustomMatcherResult) => jest.CustomMatcherResult;
export declare const toPassMatcherWith: (result: jest.CustomMatcherResult, message: Message<jest.CustomMatcherResult>) => jest.CustomMatcherResult;
declare global {
namespace jest {
interface Matchers<R, T> {
toPassMatcher(): R;
toPassMatcherWith(message: string): R;
}
}
}