@thisisagile/easy-test
Version:
Straightforward library for testing microservices built with @thisisagile/easy
22 lines (21 loc) • 721 B
TypeScript
/// <reference types="jest" />
import CustomMatcherResult = jest.CustomMatcherResult;
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: CustomMatcherResult) => CustomMatcherResult;
export declare const toPassMatcherWith: (result: CustomMatcherResult, message: Message<CustomMatcherResult>) => CustomMatcherResult;
declare global {
namespace jest {
interface Matchers<R, T> {
toPassMatcher(): R;
toPassMatcherWith(message: string): R;
}
}
}