#snapshot #testing #jest

app cargo-insta

A review tool for the insta snapshot testing library for Rust

80 releases (50 stable)

1.34.0 Oct 9, 2023
1.31.0 Jul 14, 2023
1.29.0 Mar 23, 2023
1.23.0 Dec 11, 2022
0.7.4 Mar 18, 2019

#56 in Cargo plugins

Download history 1939/week @ 2023-08-15 2439/week @ 2023-08-22 1860/week @ 2023-08-29 2100/week @ 2023-09-05 2174/week @ 2023-09-12 1938/week @ 2023-09-19 1919/week @ 2023-09-26 2327/week @ 2023-10-03 2403/week @ 2023-10-10 2475/week @ 2023-10-17 3022/week @ 2023-10-24 3920/week @ 2023-10-31 2802/week @ 2023-11-07 2030/week @ 2023-11-14 2659/week @ 2023-11-21 3054/week @ 2023-11-28

11,139 downloads per month
Used in 2 crates

Apache-2.0

610KB
7.5K SLoC

cargo-insta: review tool for insta, a snapshot testing library for Rust

cargo-insta provides a cargo command for insta snapshot reviews.

$ cargo install cargo-insta
$ cargo insta --help

To install an old version ensure to pass the --locked flag so that the Cargo.lock file is honored:

$ cargo install cargo-insta --version 1.15.0 --locked

Usage

cargo-insta provides a few different commands to interact with insta snapshots.

For running tests you can use the test command, for reviewing snapshots review. The reviewing process is interactive and prompts for all changes identified. If you want to skip reviewing you can use accept and reject directly.

For more information refer to the documentation.

Dependencies

~8–22MB
~289K SLoC