chore(deps): update rust crate insta to v1.41.1 #220
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.38.0
->1.41.1
Release Notes
mitsuhiko/insta (insta)
v1.41.1
Compare Source
v1.41.0
Compare Source
Experimental support for binary snapshots. #610 (Florian Plattner)
--force-update-snapshots
now causescargo-insta
to write every snapshot, regardless of whethersnapshots fully match, and now implies
--accept
. Thisallows for
--force-update-snapshots
to update inline snapshots'delimiters and indentation.
For the previous behavior of
--force-update-snapshots
, which limited writes tosnapshots which didn't fully match, use
--require-full-match
.The main difference between
--require-full-match
and the existing behavior of--force-update-snapshots
is a non-zero exit code on any snapshots which don't fully match.
Like the previous behavior of
--force-update-snapshots
,--require-full-match
doesn't track inline snapshots' delimiters or
indentation, so can't update if those don't match. #644
Inline snapshots only use
#
characters as delimiters when required. #603Warnings for undiscovered snapshots are more robust, and include files with
custom snapshot extensions. #637
Insta runs correctly on packages which reference rust files in a parent path. #626
Warnings are printed when any snapshot uses a legacy format. #599
cargo insta --version
now prints a version. #665insta
now internally usesINSTA_UPDATE=force
rather thanINSTA_FORCE_UPDATE=1
. (This doesn't affect users ofcargo-insta
, whichhandles this internally.) #482
cargo-insta
's integration tests continue to grow over the past couple of versions,and now offer coverage of most of
cargo-insta
's interface.v1.40.0
Compare Source
cargo-insta
no longer panics when runningcargo insta test --accept --workspace
on a workspace with a default crate. #532
MSRV 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 thesame functionality and has a clearer name. #513
Inline snapshots now use the required number of
#
s to escape the snapshotvalue, rather than always using
###
. This allows snapshotting values whichthemselves contain
###
. If there are no existing#
characters in thesnapshot value, a single
#
will be used. #540Inline snapshots can now be updated with
--force-update-snapshots
. #569cargo insta test
accepts multiple--exclude
flags. #520test
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 potentialcrashes introduced by the new sort algorithm in Rust 1.81. #586
v1.39.0
Compare Source
Fixed a bug in
require_full_match
. #485Fixed a bug that caused snapshot and module names to sometimes be inaccurate. #483
Insta will no longer error when attempting to remove snapshots that were already removed. #484
Added support for trailing commas in inline snapshots. #472
Don't pass
--color
in all cases tolibtest
any more to work around limitationswith custom test harnesses. #491
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.