vitest-dev / vitest-dev/vitest
Interactive snapshot update/create mode
Open
@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
- Maybe do not create snapshots by default (I know, that env CI=1 solves it)
- 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
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.