deno_std
deno_std copied to clipboard
Interactive snapshot testing review
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