UNPKG

@thisisagile/easy-test

Version:

Straightforward library for testing microservices built with @thisisagile/easy

22 lines (21 loc) 719 B
/// <reference types="jest" /> import { Message } from '../utils/Types'; import CustomMatcherResult = jest.CustomMatcherResult; 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: CustomMatcherResult) => CustomMatcherResult; export declare const toFailMatcherWith: (result: CustomMatcherResult, message: Message<CustomMatcherResult>) => CustomMatcherResult; declare global { namespace jest { interface Matchers<R, T> { toFailMatcher(): R; toFailMatcherWith(message: string): R; } } }