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
Unfortunately, this sounds a pretty tricky feature to implement in this library. Whereas jest has you specify your snapshots in code, cupaloy does the snapshotting for you and saves them to disk.
In contast, cupaloy is very simple and so requires that the datastructure you pass in already has any non-deterministic/non-repeatable data (like timestamps, etc.) mocked out with static values
Jest has a great feature for matching specific types for fields: https://jestjs.io/docs/snapshot-testing#property-matchers
It would be great if this library also support this.
The text was updated successfully, but these errors were encountered: