Closed Dazmurphy closed 3 years ago
No, though I am curious on what property matchers you would want to use with jest-image-snapshot given that it does an image comparison and not an object comparison.
What use cases are you thinking of?
Ah, my apologies, I misunderstood the use case of this library. I thought there was object comparison possible. Thanks for the quick response.
No problem! For object comparison jest has a built in matcher!
Is it possible to use Property Matchers in jest-image-snapshot? I don't see any way to pass these to the toMatchImageSnapshot function.
See below for docs of property matchers: https://jestjs.io/docs/snapshot-testing#property-matchers