Is there a way to pass json paths to snapshot assertion to be ignored in comparison?
Something like this:
assert_that({'id': 'some-uuid', '...': '...'}).snapshot(ignore=['$.id'])
In my use case I'm storing api responses whose ids are random generated UUIDs and they are different for each api call causing snapshot test to fail.
Is there a way to pass json paths to snapshot assertion to be ignored in comparison?
Something like this:
In my use case I'm storing api responses whose ids are random generated UUIDs and they are different for each api call causing snapshot test to fail.