You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried expect.not.toBeIso8601() as an asymmetric matcher and got this error:
error TS2339: Property 'toBeIso8601' does not exist on type 'InverseAsymmetricMatchers'.
A fix like this needs to be done for every matcher. In the meantime, this same code works as a workaround in my user code:
declare global {namespacejest{interfaceInverseAsymmetricMatchers{toBeIso8601(): any}}}
P.S. I really appreciate this library. It gets the algebra correct and lets me reuse existing matchers (which throw errors with rich diffs) instead of making me write all-new predicates (that return boolean with no diffs) unlike jest-extended. Now I just have to get Jest to fix toHaveBeenCalledWith (and friends) to stop masking the rich diffs...
The text was updated successfully, but these errors were encountered:
I tried
expect.not.toBeIso8601()
as an asymmetric matcher and got this error:A fix like this needs to be done for every matcher. In the meantime, this same code works as a workaround in my user code:
P.S. I really appreciate this library. It gets the algebra correct and lets me reuse existing matchers (which throw errors with rich diffs) instead of making me write all-new predicates (that return
boolean
with no diffs) unlikejest-extended
. Now I just have to get Jest to fixtoHaveBeenCalledWith
(and friends) to stop masking the rich diffs...The text was updated successfully, but these errors were encountered: