Skip to content

Commit

Permalink
Add how to change snapshot save location (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-git authored Jan 3, 2025
1 parent a7beb4d commit cd3707f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion content/docs/snapshot-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ are placed as separate `.snap` files, the latter are stored inline in string
literals in the `.rs` files.

File snapshots are stored in the `snapshots` folder right next to the test file
where this is used. The name of the file is `<module>__<name>.snap` where
where this is used (or in a user defined location by
[changing settings](https://docs.rs/insta/latest/insta/struct.Settings.html#method.snapshot_path)).
The name of the file is `<module>__<name>.snap` where
the `name` of the snapshot. Snapshots can either be explicitly named or the
name is derived from the test name.

Expand Down

0 comments on commit cd3707f

Please sign in to comment.