New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: reprint all tests, if one of the test files was deleted #1081
Conversation
✅ Deploy Preview for vitest-dev ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
If you delete a source file, it should trigger the rerun for tests deps on it. but if you delete a test file, it should be ...deleted, isn't it? I think you can always rerun the tests by shortcuts. Consider in some projects they might have a lot of tests, delete to trigger the full rerun sounds a bit weird behavior to me. Or maybe if you really need some feedback, we could simply print |
I agree it looks weird. But if you consider testing as a continues process, it also feels weird that nothing happend, you know? Like, imagine you are writing tests and you see an output, that 3 tests passed, 1 test failed - then you delete a file with failed test, but nothing happens? Feels disjointed that it doesn't react. But it would be an overkill, if I test one specific file, then delete another - then one of a sudden I run all tests? Also feels weird. |
Or maybe instead of rerunning, we could remove the result of that file, and print the report again. |
Closes #1005
Debatable solution. I sometimes also was confused when after deleted a file, nothing happend. Maybe at least something should happen?