- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 119
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 cannot find snapshots in non-default directories #70
Comments
It looks like my snapshots are found if I use For example:
I noticed this because I cloned Insta and started poking at the code to see if I could fix this issue, and the issue magically did not happen when I was testing against |
I cannot reproduce this. Should this issue be closed? |
I can try again when I get back into work this week and see if I can get you a minimal reproduction! |
Still happening on the project that this affects. I'll upgrade to Insta 0.12.0 and see if I can get a small repro case. |
Just chiming in to confirm that this does in fact still happen. Here's a repro. |
I tracked the cause down to |
cargo-insta does not like the previous location. See <mitsuhiko/insta#70>.
cargo-insta does not like the previous location. See <mitsuhiko/insta#70>.
Thanks. Fixed! |
Hi! I just upgraded to insta 0.11 and started taking advantage of the
Settings
struct to partition my snapshots a little more.My tests are roughly of this shape:
When I get a snapshot failure, the
.snap.new
file is created in the correct place. The output tells me to runcargo insta review
.I run
cargo insta review --all
instead because I'm running in a workspace, but Insta tells me I have no snapshots to review:...but I know it's lying, since my tests are still failing!
This issue also causes
cargo insta test
to fail, since it cannot find the snapshots that were just created. This means that the snippet recommended in the changelog to upgrade to 0.11.0 doesn't finish!The text was updated successfully, but these errors were encountered: