UNPKG

@fgv/ts-utils-jest

Version:
17 lines 641 B
import { Result } from '@fgv/ts-utils'; declare global { namespace jest { interface Matchers<R, T> { /** * Use .toSucceedAndMatchInlineSnapshot to verify that a Result<T> is a success * and that the result value matches an inline snapshot */ toSucceedAndMatchInlineSnapshot<T>(snapshot: string | undefined): R; } } } declare const _default: { toSucceedAndMatchInlineSnapshot: <T>(this: jest.MatcherContext, received: Result<T>, snapshot: string | undefined) => jest.CustomMatcherResult; }; export default _default; //# sourceMappingURL=index.d.ts.map