pest
pest copied to clipboard
Request to add CLI option for snapshot interaction
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.