It would be awesome to see property matchers like those in jest's snapshot testing. In short, they allow you to specify certain fields to ignore in JSON snapshots
This could be done if the compare function also can change the what, so you could just bring your own compare function that implements property matchers
It would be awesome to see property matchers like those in jest's snapshot testing. In short, they allow you to specify certain fields to ignore in JSON snapshots
e.g. (using jest's snapshots)
linked here is jest's documentation of this feature: https://jestjs.io/docs/en/snapshot-testing#property-matchers