Using Vitest in VSCode forks (Windsurf, Cursor) and IDE-agnostic setup #684
-
|
Hi! I have questions about the Vitest VSCode extension:
I'm trying to set up a workflow that works consistently regardless of the code editor being used. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The Vitest VSCode extension should work in most VSCode forks like Cursor and Windsurf since they're built on the same VSCode foundation and support VSCode extensions. However, there might be some edge cases or minor compatibility issues depending on how much the fork has diverged from vanilla VSCode. If you want functionality that works across different IDEs, here are some options:
Here are some IDE-agnostic approaches:
Recommended workflow: # In one terminal
vitest --watch --reporter=verbose
# Or for visual feedback
vitest --uiThis way, your testing workflow remains consistent no matter which editor you're using! Hope this helps! |
Beta Was this translation helpful? Give feedback.
The Vitest VSCode extension should work in most VSCode forks like Cursor and Windsurf since they're built on the same VSCode foundation and support VSCode extensions. However, there might be some edge cases or minor compatibility issues depending on how much the fork has diverged from vanilla VSCode.
If you want functionality that works across different IDEs, here are some options:
Run
vitest --uicommand to get a browser-based test interface that works regardless of your editor. It provides a nice visual interface for running and viewing tests.vitest --watchto runs tests automatically on file changes and shows results in the terminal.Use custom reporters to get the output format…