pest icon indicating copy to clipboard operation
pest copied to clipboard

Request to add CLI option for snapshot interaction

Open Ken-vdE opened this issue 1 year ago • 0 comments

Something that I've learned while using the LocoRS framework; interactively update or decline snapshot updates.

So like the --update-snapshots option, you could add another option named something like --verify-snapshots which then runs all tests and if a result no longer matches the existing snapshot, the difference is shown and you are asked if the new snapshot is correct and can be updated (Y/n). If not, the test fails as it would normally (without --update-snapshots or --verify-snapshots) and you continue with the next test.

Food for thought.

Ken-vdE avatar Apr 23 '25 12:04 Ken-vdE