Skip to content

Interactive snapshot testing review #6859

@xubaiwang

Description

@xubaiwang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions