-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo insta test does not find new snapshots #314
Comments
Any chance the path where the snapshots are located is referenced by |
You are spot on, that's the case. |
@lu-zero you can use |
Adding a warning sounds a good idea, maybe you could have an |
For insta toml see #282 |
What happened?
I'm moving rust-code-analysis to insta from the custom system it uses.
If I do not use set_snapshot_path, it correctly produces the snapshots:
If I pass
set_snapshot_path("repositories/rca-output/snapshots")
to fit the previous layout, it cannot find the new snapshots even if it printsstored new snapshot
as before.Reproduction steps
tests/test.rs
settings.set_snapshot_path("repositories/rca-output/snapshots");
Insta Version
1.22.0
rustc Version
1.65.0
What did you expect?
cargo insta saving the snapshots in the right path and using it.
The text was updated successfully, but these errors were encountered: