trycmd icon indicating copy to clipboard operation
trycmd copied to clipboard

Diffs and overwrite mode should not replace wildcards with full output

Open joshtriplett opened this issue 6 months ago • 1 comments

Observed in Cargo: when a test fails due to a mismatch in the output, then in addition to providing the new output, snapbox will also show a diff from any wildcards to the full output, and SNAPSHOTS=overwrite will replace the wildcards with the full output. snapbox should not produce or overwrite diffs where the - of the diff is a wildcard and the + of the diff is output matching that wildcard.

joshtriplett avatar Jul 12 '25 19:07 joshtriplett