UNPKG

@thisisagile/easy-test

Version:

Straightforward library for testing microservices built with @thisisagile/easy

20 lines (19 loc) 658 B
import { Message } from '../utils/Types'; export declare const Fails: { Yes: string; No: (reason: string) => string; }; export declare const FailsWith: { Yes: string; No: (message: string, instead: string) => string; }; export declare const toFailMatcher: (result: jest.CustomMatcherResult) => jest.CustomMatcherResult; export declare const toFailMatcherWith: (result: jest.CustomMatcherResult, message: Message<jest.CustomMatcherResult>) => jest.CustomMatcherResult; declare global { namespace jest { interface Matchers<R, T> { toFailMatcher(): R; toFailMatcherWith(message: string): R; } } }