Skip to content

Support ignore json paths in snapshot tests #118

Description

@Pacheco95

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.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions