@fgv/ts-utils-jest
Version:
Custom matchers for ts-utils result class
17 lines • 555 B
TypeScript
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 stored snapshot.
*/
toFailTestAndMatchSnapshot<T>(): R;
}
}
}
declare const _default: {
toFailTestAndMatchSnapshot: <T>(this: jest.MatcherContext, cb: () => void) => jest.CustomMatcherResult;
};
export default _default;
//# sourceMappingURL=index.d.ts.map