Is there a quick way to update the parsing snapshot tests? I have a few that are failing because I made a change. Sadly, they just print the diff instead of applying it and letting me commit the changes if I agree with them.
The tests from -p test_syntax --test test_snapshots
My fastest mechanism so far has been to just delete the current file and copy the diff in
But I don't know of a "clean" way
We should maybe make these work like mono. Where it updates the file and lets you git add ...
if you agree with the diff.
I agree with that suggestion
Isn't there a cargo tool like cargo review or something that does this. I can't check rn I'm on my phone, but last time I looked at it I hadn't noticed the tool was in the error message it said use this to review and approved the new snapshots.
I think it was $ cargo insta review
Actually I think you're looking for ROC_SNAPSHOT_TEST_OVERWRITE
$ ROC_SNAPSHOT_TEST_OVERWRITE=1 cargo test -p test_syntax --test test_snapshots
I’ve been thinking about converting these tests to use cargo insta
Last updated: Jul 06 2025 at 12:14 UTC