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.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.