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
Thanks for the explanation in this comment. However, it is still not fully clear to me (probably because I'm not familiar with Jest's toMatchObject either).
Please confirm if my understanding is correct:
leta: A;letb: B;// Passes if and only if `A` is identical to `B`expectTypeOf(a).toEqualTypeOf(b)// Passes if and only if `A extends B`// In other words, passes if and only if the assignment `b = a` is validexpectTypeOf(a).toMatchTypeOf(b)
Is this correct?
Thanks!!
The text was updated successfully, but these errors were encountered:
papb
changed the title
Clarification on toEqualType versus toMatchType
[expect-type] Clarification on toEqualType versus toMatchTypeMay 7, 2020
Hello!
Thanks for the explanation in this comment. However, it is still not fully clear to me (probably because I'm not familiar with Jest's
toMatchObject
either).Please confirm if my understanding is correct:
Is this correct?
Thanks!!
The text was updated successfully, but these errors were encountered: