Save the failed snapshot in the same directory as the reference image and with the same filename but with _failed appended.
I also considered putting all failed snapshots in a separate directory structure allowing for a simpler .gitignore but I thought this approach might be better because it's less complex and we shouldn't be ignoring the failed snapshots (along with their failing tests) anyhow. Opinions are of course welcome.
Proposed solution:
Save the failed snapshot in the same directory as the reference image and with the same filename but with
_failed
appended.I also considered putting all failed snapshots in a separate directory structure allowing for a simpler
.gitignore
but I thought this approach might be better because it's less complex and we shouldn't be ignoring the failed snapshots (along with their failing tests) anyhow. Opinions are of course welcome.Prepares for https://github.com/parski/SnapshotTest/issues/9 and solves https://github.com/parski/SnapshotTest/issues/46.