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
As shown below, I'll expect insta to update all snapshot inside the test by clicking the button in vscode:
But unfortunately, it'll invoke cargo test --package <package> --lib --all-features -- <test_path> --exact --nocapture instead of cargo insta test ...., so the test will not get updated.
Anyway, thanks for bringing this feature, and it'll be really helpful if it works!
Reproduction steps
No response
Insta Version
cargo-insta 1.42.1
vscode extension 1.0.7
rustc Version
rustc 1.86.0-nightly (854f22563 2025-01-31)
What did you expect?
No response
The text was updated successfully, but these errors were encountered:
After some investigation, it turns out that the button is implemented by rust-analyzer, and the command the analyzer invokes is INSTA_UPDATE=always cargo test .....
Due to #490, the inline snapshots are not able to be updated with cargo test yet, so the button is not working for inline snapshots. I am closing this one in favor of #490.
What happened?
As shown below, I'll expect insta to update all snapshot inside the test by clicking the button in vscode:
But unfortunately, it'll invoke
cargo test --package <package> --lib --all-features -- <test_path> --exact --nocapture
instead ofcargo insta test ....
, so the test will not get updated.Anyway, thanks for bringing this feature, and it'll be really helpful if it works!
Reproduction steps
No response
Insta Version
cargo-insta 1.42.1
vscode extension 1.0.7
rustc Version
rustc 1.86.0-nightly (854f22563 2025-01-31)
What did you expect?
No response
The text was updated successfully, but these errors were encountered: