Run test at cursor (opens a fresh integrated terminal).
Debug test with Node debugger (integrated terminal).
Run ×N (loop) to detect flaky tests; shows per-run header and a final summary.
Uses the workspace folder as cwd for correct module resolution.
Platform: POSIX shells only (macOS/Linux). Windows PowerShell/CMD not supported in this fork.
Usage
Open a test file in VS Code.
Place your cursor in the test you want to run (or select its name).
Use the Command Palette and choose:
Vitest Runner: Run
Vitest Runner: Debug
Vitest Runner: Run ×N
Each action opens a new terminal so runs don’t stomp each other.
Settings
Add any of these to your workspace settings:
{
// Extra args to pass to Vitest on every run
"vitestRunner.extraArgs": ["--pool=threads"],
// How many iterations for "Run ×N"
"vitestRunner.loopCount": 20
}