UNPKG

@fgv/ts-utils-jest

Version:

Custom matchers for ts-utils result class

18 lines 610 B
declare global { namespace jest { interface Matchers<R, T> { /** * Use .toFailTestWith to test a custom matcher by * verifying that a test case fails as expected and * reports an error matching a supplied value. * @param expected - */ toFailTestWith<T>(expected: string | string[] | RegExp): R; } } } declare const _default: { toFailTestWith: <T>(cb: () => void, expected: RegExp | string | string[]) => jest.CustomMatcherResult; }; export default _default; //# sourceMappingURL=index.d.ts.map