Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mitsuhiko/insta
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.24.1
Choose a base ref
...
head repository: mitsuhiko/insta
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.26.0
Choose a head ref
  • 8 commits
  • 14 files changed
  • 1 contributor

Commits on Jan 4, 2023

  1. Copy the full SHA
    2378f2c View commit details
  2. Copy the full SHA
    f1c3b58 View commit details

Commits on Jan 5, 2023

  1. Copy the full SHA
    b5e3a04 View commit details
  2. Copy the full SHA
    27369b5 View commit details
  3. Added changelog entry

    mitsuhiko committed Jan 5, 2023
    Copy the full SHA
    0cf0924 View commit details
  4. Copy the full SHA
    44cf2da View commit details

Commits on Jan 6, 2023

  1. Copy the full SHA
    b319043 View commit details
  2. 1.26.0

    mitsuhiko committed Jan 6, 2023
    Copy the full SHA
    08a9ec3 View commit details
Showing with 620 additions and 428 deletions.
  1. +13 −0 CHANGELOG.md
  2. +2 −2 Cargo.toml
  3. +62 −16 cargo-insta/Cargo.lock
  4. +3 −3 cargo-insta/Cargo.toml
  5. +1 −268 cargo-insta/src/cargo.rs
  6. +93 −104 cargo-insta/src/cli.rs
  7. +200 −0 cargo-insta/src/container.rs
  8. +2 −0 cargo-insta/src/main.rs
  9. +144 −0 cargo-insta/src/walk.rs
  10. +10 −0 src/env.rs
  11. +3 −0 src/lib.rs
  12. +4 −2 src/macros.rs
  13. +23 −12 src/runtime.rs
  14. +60 −21 src/snapshot.rs
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,19 @@

All notable changes to insta and cargo-insta are documented here.

## 1.26.0

- Make canonicalization in `glob!` optional to better support WASI.

## 1.25.0

- Added a way to disable the undiscoverable snapshots warning. By
setting the `review.warn_undiscovered` config key to `false` a
warning is never printed. (#334)
- Force updating snapshots will now not overwrite files that did not
change. This improves the behavior for situations if that behavior
is preferred as a default choice. (#335)

## 1.24.1

- Fix non working `--include-hidden` flag (#331)
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "insta"
version = "1.24.1"
version = "1.26.0"
license = "Apache-2.0"
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
description = "A snapshot testing library for Rust"
@@ -48,7 +48,7 @@ _cargo_insta_internal = []

[dependencies]
dep_csv = { package = "csv", version = "1.1.4", optional = true }
console = { version = "0.15.2", optional = true, default-features = false }
console = { version = "0.15.4", optional = true, default-features = false }
pest = { version = "2.1.3", optional = true }
pest_derive = { version = "2.1.0", optional = true }
dep_ron = { package = "ron", version = "0.7.1", optional = true }
78 changes: 62 additions & 16 deletions cargo-insta/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions cargo-insta/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-insta"
version = "1.24.1"
version = "1.26.0"
license = "Apache-2.0"
authors = ["Armin Ronacher <armin.ronacher@active-4.com>"]
description = "A review tool for the insta snapshot testing library for Rust"
@@ -12,8 +12,8 @@ edition = "2018"
readme = "README.md"

[dependencies]
insta = { version = "=1.24.1", path = "..", features = ["json", "yaml", "redactions", "_cargo_insta_internal"] }
console = "0.15.1"
insta = { version = "=1.26.0", path = "..", features = ["json", "yaml", "redactions", "_cargo_insta_internal"] }
console = "0.15.4"
structopt = { version = "0.3.26", default-features = false }
serde = { version = "1.0.117", features = ["derive"] }
serde_json = "1.0.59"
Loading