denoland / denoland/std

Interactive snapshot testing review

Open
#6,859 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

**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**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.