chore(deps): update rust crate insta to v1 #11
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:
0.16
->1.0
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
v1.38.0
Compare Source
Filters
is now constructible fromIntoIterator
. #400Change
std
macro calls to be fully qualified. This fixes issues wherethe prelude was not used or the macros were overridden. #469
v1.37.0
Compare Source
All macros for file snapshots should now handle trailing commas (but not yet inline snapshots)
Vendored old
yaml-rust
dependency to avoid rustsec warnings. #465v1.36.1
Compare Source
v1.36.0
Compare Source
Deprecate
INSTA_FORCE_UPDATE_SNAPSHOTS
env-var forINSTA_FORCE_UPDATE
.The latter was documented, the former was implemented. #449
Add
require_full_match
option. #448Deprecate
assert_display_snapshot!
. #385v1.35.1
Compare Source
v1.35.0
Compare Source
.config
was in the root.match .. { ... }
syntax to redactions for betterrustfmt
support. (#428)--package
parameter can be supplied multiple times now. (#427)inline snapshots that were never able to match. (#444)
cargo insta test
now accepts the--test
parameter multiple times. (#437)v1.34.0
Compare Source
cargo-insta
into a workspace. (#410)--manifest-path
with regards to virtual workspaces. (#409)v1.33.0
Compare Source
--all-targets
parameter support tocargo insta test
. (#408)v1.32.0
Compare Source
--profile
parameter support tocargo insta test
.v1.31.0
Compare Source
cargo insta test
not to report test failures.needless_raw_string_hashes
clippy lint on inline snapshots. (#390)v1.30.0
Compare Source
input_file
not to be written into thesnapshots. (#386)
--accept
even if a test outsideinsta fails. (#358)
#[must_use]
.--color=...
to libtest to propagate color choices in more situations. (#375)v1.29.0
Compare Source
rendered to the terminal width).
--exclude
option tocargo insta test
. (#360)color
option from aCARGO_TERM_COLOR
environment variable (#361)v1.28.0
Compare Source
allow_duplicates!
to enable multiple assertions for asingle snapshot. (#346)
rustfmt
use unix newlines.glob!
to set a different basepath. (#347)
rounded_redaction
to truncate floating point values. (#350)v1.26.0
Compare Source
glob!
optional to better support WASI.v1.24.1
Compare Source
--include-hidden
flag (#331)review.include_ignored
(#330)v1.24.0
Compare Source
.config/insta.yaml
) to change thebehavior of insta and cargo-insta. (#322)
--no-ignore
to--include-ignored
.--include-hidden
to instruct insta to also walk intohidden paths.
--unreferenced
option tocargo-insta test
which allowsfine tuning of what should happen with unreferenced files. It's now
possible to ignore (default), warn, reject or delete unreferenced
snapshots. (#328)
test targeting. (#317)
v1.23.0
Compare Source
v1.22.0
Compare Source
should make sure that ANSI sequences in strings are no longer screwing
up the terminal output. (#308)
--target
option tocargo insta test
. (#309)suffixes. This allows patterns such as
foo/*/*.txt
withoutcreating conflicts. (#310)
v1.21.2
Compare Source
cargo insta test
. (#305)v1.21.1
cargo insta test
.v1.21.0
cargo insta show
command to render a snapshot.v1.20.0
Compare Source
cargo insta
now supports nextest as test runner. (#285)glob!
macro now defers failures by default. (#284)v1.19.1
Compare Source
v1.19.0
Compare Source
backtrace
feature.serialization
feature.assert_json_snapshot!
andassert_yaml_snapshot!
now requirethe
json
andyaml
feature respectively.not supported (#272)
INSTA_GLOB_FILTER
to skip over tests expandedfrom a glob. (#274)
v1.18.2
Compare Source
#[allow(unused)]
in the macro. (#271)v1.18.1
Compare Source
tuple variants. (#270)
v1.18.0
Settings::bind
now can return a result.bind_to_scope
.serde
dependency is now optional. While still enabled by defaultusers need to opt into
yaml
andjson
features explicitly to regainsupport for it. To avoid the default
serde
dependency the defaultfeatures just need to be disabled. (#255)
serialization
features.backtrace
feature.Settings::bind_to_thread
.Breaking Changes / Upgrading: If you are upgrading to serde 1.18.0 you will
receive deprecating warnings if you are using the
assert_yaml_snapshot!
andassert_json_snapshot!
macros. These macros will continue to function in thefuture but they will require explicit opting into the
yaml
andjson
features.To silence the warning add them to your
insta
dependency. Additionally thebacktrace
feature was deprecated. It is no longer needed so just remove it.v1.17.2
v1.17.1
work. (#252)
v1.17.0
cargo-insta
where sometimes accepting inline snapshotswould crash with an out of bounds panic.
filters
feature. (#245)with_settings!
macro now inherits the former settings rather than resetting. (#249)Settings::bind_to_scope
and deprecatedSettings::bind_to_thread
. (#250)minimal-versions
builds.v1.16.0
Compare Source
--no-quiet
/-Q
flag tocargo insta test
to suppress thequiet flag. This works around limitations with custom test harnesses
such as cucumber.
with_settings!
. It's now a perfect match tothe settings object's setter methods.
description
andinfo
to snapshots. (#239)omit_expression
setting. (#239)v1.15.0
Compare Source
serde-yaml dependency no longer supports older versions of Rust.
v1.14.1
Compare Source
"foo\n"
. (#225)v1.14.0
Compare Source
moved since the time of the snapshot creation. (#220)
cargo insta test
now returns non zero status code when snapshotsare left for review. (#222)
cargo insta test
. (#223)v1.13.0
assertion_line
is no longer retained in snapshots. (#218)v1.12.0
sorted_redaction
andSettings::sort_selector
). (#212)Upgrade Notes:
Insta used to detect the current test name by using the current thread name. This
appeared to work well but unfortunately ran into various limitations. In particular
in some cases the thread name was truncated, missing or did not point to the current
test name. To better support different platforms and situations insta now uses the
function name instead.
This however changes behavior. In particular if you are using a helper function to
assert, a different snapshot name will now be used. You can work around this issue
by using a helper macro instead or to explicitly pass a snapshot name in such
situations.
v1.11.0
Compare Source
once_cell
. (#208)v1.10.0
Compare Source
v1.9.0
Compare Source
cargo-insta
now correctly handles the package (-p
) argumenton
test
when deleting unreferenced snapshots. (#201)v1.8.0
Compare Source
will quickly be old, they are often useful when reviewing snapshots
immediately after creation with
cargo-insta
. (#191)v1.7.2
Compare Source
cargo test
. (#183)Box::leak
. (#185)INSTA_WORKSPACE_ROOT
is set, the value is used as the manifestdirectory rather than whatever
CARGO_MANIFEST_DIR
was set to at compiletime. (#180)
v1.7.1
Compare Source
v1.7.0
Compare Source
v1.6.3
Compare Source
v1.6.2
Compare Source
v1.6.1
Compare Source
v1.6.0
Compare Source
multiple rows. (#156)
v1.5.3
similar.
v1.5.2
v1.5.1
Compare Source
v1.5.0
Compare Source
pending-snapshots
parameter tocargo-insta
.cargo-insta
now honors ignore files. This can be overriddenwith
--no-ignore
.cargo-insta
now supports the vscode extension.v1.4.0
Compare Source
--delete-unreferenced-snapshots
parameter tocargo-insta
.globset
crate for theglob
feature.INSTA_UPDATE
is set toalways
orunseen
it won'tfail on execution.
v1.3.0
Compare Source
Content
.v1.2.0
Compare Source
v1.1.0
Compare Source
INSTA_SNAPSHOT_REFERENCES_FILE
environment variable to supportdeletions of unreferenced snapshot files. (#136)
prepend_module_to_snapshot
flag to disable prepending of modulenames to snapshot files. (#133)
console
dependency optional. Thecolors
feature can be disabled nowwhich disables colored output.
v1.0.0
Compare Source
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 becomes conflicted, 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.