Sourced from insta's releases.
1.40.0
Release Notes
cargo-insta
no longer panics when runningcargo test --accept --workspace
on a workspace with a default crate. #532MSRV for
insta
has been raised to 1.60, and forcargo-insta
to 1.64.Added support for compact debug snapshots (
assert_compact_debug_snapshot
). #514Deprecate
--no-force-pass
incargo-insta
. The--check
option covers the same functionality and has a clearer name. #513Inline snapshots now use the required number of
#
s to escape the snapshot value, rather than always using###
. This allows snapshotting values which themselves contain###
. If there are no existing#
characters in the snapshot value, a single#
will be used. #540Inline snapshots can now be updated with
--force-update-snapshots
. #569
cargo insta test
accepts multiple--exclude
flags. #520
test
runner
in insta's yaml config works. #544Print a warning when encountering old snapshot formats. #503
Group the options in
cargo insta --help
, upgrade toclap
fromstructopt
. #518No longer suggest running
cargo insta
message when runningcargo insta test --check
. #515Print a clearer error message when accepting a snapshot that was removed. #516
Mark
require-full-match
as experimental, given some corner-cases are currently difficult to manage. #497Add a new integration test approach for
cargo-insta
and a set of integration tests. #537Enable Filters to be created from
IntoIterator
types, rather than justVec
s. #570Implemented total sort order for an internal
Key
type correctly. This prevents potential crashes introduced by the new sort algorithm in Rust 1.81. #586Install cargo-insta 1.40.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.40.0/cargo-insta-installer.sh | sh
Install prebuilt binaries via powershell script
... (truncated)
Sourced from insta's changelog.
1.40.0
cargo-insta
no longer panics when runningcargo insta test --accept --workspace
on a workspace with a default crate. #532MSRV for
insta
has been raised to 1.60, and forcargo-insta
to 1.64.Added support for compact debug snapshots (
assert_compact_debug_snapshot
). #514Deprecate
--no-force-pass
incargo-insta
. The--check
option covers the same functionality and has a clearer name. #513Inline snapshots now use the required number of
#
s to escape the snapshot value, rather than always using###
. This allows snapshotting values which themselves contain###
. If there are no existing#
characters in the snapshot value, a single#
will be used. #540Inline snapshots can now be updated with
--force-update-snapshots
. #569
cargo insta test
accepts multiple--exclude
flags. #520
test
runner
in insta's yaml config works. #544Print a warning when encountering old snapshot formats. #503
Group the options in
cargo insta --help
, upgrade toclap
fromstructopt
. #518No longer suggest running
cargo insta
message when runningcargo insta test --check
. #515Print a clearer error message when accepting a snapshot that was removed. #516
Mark
require-full-match
as experimental, given some corner-cases are currently difficult to manage. #497Add a new integration test approach for
cargo-insta
and a set of integration tests. #537Enable Filters to be created from
IntoIterator
types, rather than justVec
s. #570Implemented total sort order for an internal
Key
type correctly. This prevents potential crashes introduced by the new sort algorithm in Rust 1.81. #586
83f3365
1.40.08893db7
Implement total ord for Key (#586)a4231cc
Add test for find_snapshot_macro
(#582)d609d7d
Add integration test for force updating (#580)02665ea
Mask insta env vars in integration tests (#579)ef7abb8
Use different tests for redactions (#578)597199d
Make test_normalize_inline_snapshot
easier to read (#577)ca87b84
Fix latest clippy (#574)4bea0fb
Unify handling of file & inline snapshots (compat) (#528)c29db01
Enable inline snapshots to be force-updated (#569)