When using jest.retryTimes, toMatchImageSnapshot fails if there is no custom customSnapshotIdentifier configured. However, I don't really understand what the docs mean in this case in terms of "uniqueness".
which is effectively the same as the default snapshot identifier, I get past the thrown error, and it seems to work OK. So why does it need to be configured at all?
When using
jest.retryTimes
, toMatchImageSnapshot fails if there is no customcustomSnapshotIdentifier
configured. However, I don't really understand what the docs mean in this case in terms of "uniqueness".For example, if I define it like this:
which is effectively the same as the default snapshot identifier, I get past the thrown error, and it seems to work OK. So why does it need to be configured at all?