-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow to interrupt test running in watch mode #3612
Comments
This should already be implemented by #3163. When you press The vitest/packages/vitest/src/node/stdin.ts Lines 7 to 16 in 1e8760a
vitest/packages/vitest/src/node/stdin.ts Lines 50 to 54 in 1e8760a
|
Oh cool. Will have to see when at the computer when I get there if we are on an older version but wasn’t working for me today and very recently migrated. Although that PR looks like it’s pretty newly merged so maybe I’m not on that version. And yeah it does use “h” it’s what it says at the end when you’ve finished running tests. Something like press “h” for help. |
Oh right, sorry, you are correct. The #3618 adds |
Clear and concise description of the problem
Currently if I have thousands of tests to run and want to use the watch feature to filter only say one test, or test file, then I have to wait until the entire test suite runs to then press "h" and do that. This takes a lot of time and also is different to how Jest works where you can interrupt the test running and do filtering.
Suggested solution
Pressing enter, or any of the keys like "h" or whatever should interrupt the current run. That way I could start the watch, press enter, then start filtering to the tests I care about. This is how Jest works and it would be great if Vite did similar.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: