deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

Interactive snapshot testing review

Open xbwwj opened this issue 4 months ago • 0 comments

Is your feature request related to a problem? Please describe.

Is it possible to review snapshots interactively? Both jest and Rust insta support this feature.

Describe the solution you'd like

Add a new --interactive flag to snapshot testing. When the interactive flag is specified, write the new snapshot to a .snap.new file and spawn a TUI to let the users review it interactively.

This review interface maybe be provided as a function to be run in Deno.test.afterEach or Deno.test.afterAll hooks, so that users can use their own functions and have integration with editors like VSCode and NeoVim.

Describe alternatives you've considered

xbwwj avatar Oct 27 '25 03:10 xbwwj