Open regevbr opened 4 years ago
Instead of creating a custom matcher, it will be cool to include one built in. For example:
import { Matcher } from 'jest-mock-extended'; import { equals } from 'expect/build/jasmineUtils'; export const isEqual = <T>(expectedValue: T) => new Matcher<T>((actualValue: T) => { return equals(actualValue, expectedValue); });
Instead of creating a custom matcher, it will be cool to include one built in. For example: