UI coverage list filters/shrinks during watch #6225
Labels
feat: coverage
Issues and PRs related to the coverage feature
p2-nice-to-have
Not breaking anything but nice to have (priority)
Describe the bug
I'm trying to add tests to my project. I'm using the coverage UI to help me navigate this task and see where the gaps in testing are.
When the UI first launches I see all files in the coverage "all files" section.
However as I save tests the list shrinks, and might only show the file I just saved in a specific folder, rather than the other files that were previously visible. I think this has something to do with --watch where it only runs against files you just changed, but I want to always see all files so I can work through them.
Currently I have to keep restarting the process to get the full file list back.
Reproduction
I'm launching with:
vitest --watch --config tests/vitest.unit-config.ts --ui
I've tried the
test.coverage.all: true
optionSystem Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: