Skip to content

Commit

Permalink
Ensure cargo insta sets old envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Mar 3, 2024
1 parent 780c343 commit efa031c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cargo-insta/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,9 @@ fn prepare_test_runner<'snapshot_ref>(
},
);
if cmd.force_update_snapshots {
// for old versions of insta
proc.env("INSTA_FORCE_UPDATE_SNAPSHOTS", "1");
// for newer versions of insta
proc.env("INSTA_FORCE_UPDATE", "1");
}
if cmd.require_full_match {
Expand Down

0 comments on commit efa031c

Please sign in to comment.