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
There is no prototype hacking in myzod. Sometimes myzod will create a new object if it's necessary, such as when coercion is used between numbers and strings and dates, or when "map" is invoked on a schema.
Perhaps this has to do with deep equality?
Myzod does not do anything esoteric to objects or their prototypes.
The result of myzod causes Jest's
.toEqual
's skipping of undefined keys to not work. I am assuming this is due to some prototype hacking?i.e.
Workaround
I am able to resolve this by recreating the object via JSON.parse/stringify:
The text was updated successfully, but these errors were encountered: