-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
INSTA_UPDATE=force
for forcing snapshot updates (#482)
In an effort to simplify the configs, this merges the `INSTA_UPDATE` and `INSTA_FORCE_UPDATE` configs. Conceptually, `INSTA_FORCE_UPDATE` overwrites `INSTA_UPDATE`; they naturally fit into the same config setting. I realized after starting this that we want to be careful about supporting new & old versions of `cargo-insta`. So this takes a conservative approach, ~only changing `insta` at first, but with the future updates to `cargo-insta` commented in the code. I realize that adds a bit of complication; though on balance I think simplifying the configs would be helpful and this makes a step towards that.~ Adjusted to use the underlying version of `insta`; I think a good approach! ~It stacks on #479, which should merge first.~ Merged ~I'd be open to writing some tests for this if that'd be helpful.~ Written
- Loading branch information
Showing
11 changed files
with
139 additions
and
73 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "cargo-insta" | ||
version = "1.40.0" | ||
version = "1.41.0" | ||
license = "Apache-2.0" | ||
authors = ["Armin Ronacher <[email protected]>"] | ||
description = "A review tool for the insta snapshot testing library for Rust" | ||
|
@@ -11,24 +11,25 @@ keywords = ["snapshot", "testing", "jest"] | |
categories = ["development-tools::cargo-plugins"] | ||
edition = "2021" | ||
readme = "README.md" | ||
rust-version = "1.64.0" | ||
rust-version = "1.65.0" | ||
|
||
[dependencies] | ||
insta = { version = "=1.40.0", path = "../insta", features = ["json", "yaml", "redactions", "_cargo_insta_internal"] } | ||
insta = { version = "=1.41.0", path = "../insta", features = ["json", "yaml", "redactions", "_cargo_insta_internal"] } | ||
cargo_metadata = { version = "0.18.0", default-features = false } | ||
console = "0.15.4" | ||
serde = { version = "1.0.117", features = ["derive"] } | ||
serde_json = "1.0.59" | ||
proc-macro2 = { version = "1.0.60", features = ["span-locations"] } | ||
# Pinned because of MSRV; wait for MSRV bump or msrv-resolver | ||
# Needs pinning in Cargo.lock because of MSRV | ||
syn = { version = "2.0.8", features = ["full", "visit", "extra-traits"] } | ||
# Needs pinning in Cargo.lock because of MSRV | ||
ignore = "0.4.17" | ||
uuid = { version = "1.0.0", features = ["v4"] } | ||
tempfile = "3.5.0" | ||
# Not yet supported in our MSRV of 1.60.0 | ||
# clap = { workspace=true } | ||
clap = {version = "4.1", features = ["derive", "env"]} | ||
|
||
# Needs pinning in Cargo.lock because of MSRV | ||
semver = {version = "1.0.7", features = ["serde"]} | ||
lazy_static = "1.4.0" | ||
clap = { workspace=true } | ||
|
||
[dev-dependencies] | ||
walkdir = "2.3.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "insta" | ||
version = "1.40.0" | ||
version = "1.41.0" | ||
license = "Apache-2.0" | ||
authors = ["Armin Ronacher <[email protected]>"] | ||
description = "A snapshot testing library for Rust" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.