@fgv/ts-utils-jest
Version:
Custom matchers for ts-utils result class
17 lines • 570 B
TypeScript
declare global {
namespace jest {
interface Matchers<R> {
/**
* Use .toSucceedWith to verify that a Result<T> is a success
* and that the result value matches the supplied value
* @param expected -
*/
toHaveBeenCalledWithArgumentsMatching(expected: unknown): R;
}
}
}
declare const _default: {
toHaveBeenCalledWithArgumentsMatching: (received: jest.Mock, expected: unknown) => jest.CustomMatcherResult;
};
export default _default;
//# sourceMappingURL=index.d.ts.map