You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...and so whenever there's a test that doesn't pass, and a snapshot changes, the snapshot stays pending, and adding or removing code which changes a line will then cause a panic.
I realize i haven't been involved much in development since the early days of 0.11.0 (!). But after I've finished the latest version of my current project, I could take this, if no one else does.
Reproduction steps
Write inline test
Run cargo insta test
Before reviewing, add a line to the code such that the inline test changes line
Run cargo insta test
Insta Version
1.13.0
rustc Version
1.59.0
What did you expect?
Probably deleting the out-of-date snapshot, maybe with a warning.
Maaaybe there's a case for an error, I wouldn't advocate for that though.
The text was updated successfully, but these errors were encountered:
What happened?
When there's a pending inline snapshot and the code changes such that the line moves, running
cargo insta test
panics with:I get this quite often since I generally leave on:
...and so whenever there's a test that doesn't pass, and a snapshot changes, the snapshot stays pending, and adding or removing code which changes a line will then cause a panic.
I realize i haven't been involved much in development since the early days of 0.11.0 (!). But after I've finished the latest version of my current project, I could take this, if no one else does.
Reproduction steps
cargo insta test
cargo insta test
Insta Version
1.13.0
rustc Version
1.59.0
What did you expect?
Probably deleting the out-of-date snapshot, maybe with a warning.
Maaaybe there's a case for an error, I wouldn't advocate for that though.
The text was updated successfully, but these errors were encountered: