github mitsuhiko/insta 1.48.0

9 hours ago

Release Notes

  • Add strip_ansi_escape_codes setting which removes ANSI escape sequences
    (color codes, cursor movement, etc.) from snapshot content before comparison.
    Requires the filters feature. #899 (@pierluigilenoci)
  • Add opt-in support for YAML literal blocks for multiline strings in snapshot
    metadata fields such as description and expression. Set
    INSTA_YAML_BLOCK_STYLE=1 to enable. #851 (@ivov)
  • Setting CI=true normally makes cargo insta test behave as though --check
    was passed. Explicit snapshot handling options such as --accept now take
    precedence over this environment variable, allowing users to override this
    behavior if they want to. #924
  • Fix cargo insta test --profile being forwarded to nextest as the nextest
    profile instead of the cargo build profile; it now translates to
    --cargo-profile for the nextest runner. Add --nextest-profile to select
    the nextest profile. #910
  • Fix cargo insta pending-snapshots printing unusable \\?\-prefixed paths
    on Windows. The --snapshot filter now also accepts partial paths: any
    trailing path suffix of the snapshot file matches, so a bare
    --snapshot my_test.snap works. #904
  • Accepting a binary snapshot no longer fails with os error 2 when its data
    file is missing (e.g. gitignored and not committed). #914

Install cargo-insta 1.48.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://github.com/mitsuhiko/insta/releases/download/1.48.0/cargo-insta-installer.ps1 | iex"

Download cargo-insta 1.48.0

File Platform Checksum
cargo-insta-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
cargo-insta-x86_64-apple-darwin.tar.xz Intel macOS checksum
cargo-insta-x86_64-pc-windows-msvc.zip x64 Windows checksum
cargo-insta-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum
cargo-insta-x86_64-unknown-linux-musl.tar.xz x64 MUSL Linux checksum

Don't miss a new insta release

NewReleases is sending notifications on new releases.