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
Sometimes we just want check if a object is partially equal to another object.
In jest we have expect.toMatchObject
This is very useful when you must check a object with the certain dynamics values.
An example of that is when you call a API to create a resource, commonly, we do not know what is the values of id and fields like created_at and updated_at.
There already is a way to do it with uvu?
If not, there is any plan?
The text was updated successfully, but these errors were encountered:
No, the expect.toMatchObject is a partial match. uvu already includes assert.equal which is a deep, equality check for exactness. Here's the difference:
Sometimes we just want check if a object is partially equal to another object.
In jest we have expect.toMatchObject
This is very useful when you must check a object with the certain dynamics values.
An example of that is when you call a API to create a resource, commonly, we do not know what is the values of
id
and fields likecreated_at
andupdated_at
.There already is a way to do it with uvu?
If not, there is any plan?
The text was updated successfully, but these errors were encountered: