[Vitest] How can I send a watch mode command (e.g. "press a to rerun all tests")

It is a great improvement to WebStorm the Vitest support. 🎉

The vitest's `--watch` mode has functionality that devs can control over it with key inputs:

 PASS  Waiting for file changes...
       press h to show help, press q to quit

  Watch Usage
  press a to rerun all tests
  press f to rerun only failed tests
  press u to update snapshot
  press p to filter by a filename
  press t to filter by a test name regex pattern
  press q to quit

How can I send these key commands in the Run/Debug mode in WebStorm?

0
2 comments

Not possible at the moment, please vote for https://youtrack.jetbrains.com/issue/WEB-58676/Vitest-support-passing-commands-to-vitest-watch to raise its priority and get notified on updates

0

Thank you for the answer and opening a feature request. 🙌

0

Please sign in to leave a comment.