Usage Example
/// Regression test for `impl Display` of a complex type.
# Create (or update) the snapshot file
UPDATE_SNAPSHOTS=yes
# Ensure the Display impl is not accidentally changed
Diffing Engine
We use the same excellent diffing engine that insta
is using. While insta
unfortunately suffers from Issue #425: GitHub syntax highlights insta snapshots like Jest Snapshots which makes diffs very hard to read, we allow custom snapshot file extensions and avoid that bug.
Force Colors in CI
Set the env var CLICOLOR_FORCE=1
to get colors in CI logs.
Audit the Code
This crate is 40 lines of code. Audit with the following one-liner, but make sure you follow to the crates.io Data Access Policy:
|
|