Replies: 1 comment
-
The example you wrote should work. It would be possible to consider influencing this via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment setting the snapshot path requires
insta::with_settings!({snapshot_path => "../snapshots"}
to be included in any test that wants to set the path. This is too verbose for my use case. I just want to tell the cli runner that the snapshot path is one directory inside the cargo workspace root directory. Preferably through the.insta.yaml
config.I think the assert_snapshot macro is just expanding to file write code? I'm not familiar with cargo integration tools to know even if the following is possible, but I assume insta is not "cooperating" with cargo test to generate the snapshot files?
Doing this to simplify for now
Beta Was this translation helpful? Give feedback.
All reactions