vitest-dev / vitest-dev/vitest

Interactive snapshot update/create mode

Open
#2,229 8 comments 4 reactions 1 assignee View on GitHub

@macarie is already working on this.

Since Jun 12, 2026.

p2-nice-to-have
Dominant language
TypeScript
Stars
17.1k
Forks
2k
Avg merge
1d 22h
Merged PRs (30d)
94

Description

Clear and concise description of the problem

We are testing media assets, by matching their md5 basically. So we have a suit, that basically calls the same render function but in different contexts (projects, parameters). Basically, the output must be validated before confirming, that this md5 should be a snapshot.
Jest has an interactive mode, but async describe is not a thing anymore, so we tried to switch to Vitest.

Suggested solution
  1. Maybe do not create snapshots by default (I know, that env CI=1 solves it)
  2. Have interactive update/create mode, that does 1 test at a time and asks to validate output
Alternative

I could implement it myself but have no way to interrupt runner and it just times out. Also, libraries such as enquirer do not work during the run.

Additional context

No response

Validations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.