vitest
Verified for current stable LTS
Vitest Commands
Vitest command syntax with verified terminal examples.
Commands
8 commands for Vitest
vitest Operations
Vitest Command: Display Help
vitest --help vitest Operations
Vitest Command: Run All Tests
vitest run vitest Search
Vitest Command: Run Matching Files Recursively
vitest run <regex1 regex2 ...> vitest Search
Vitest Command: Run Matching Tests By Name
vitest run -t <regex> vitest Operations
Vitest Command: Run Specific Files
vitest run <path/to/file1 path/to/file2 ...> vitest Operations
Vitest Command: Run Tests With Bail On Failure
vitest run --bail=1 vitest Operations
Vitest Command: Run Tests With Coverage
vitest run --coverage vitest Operations
Vitest Command: Watch Files And Re Run Tests
vitest Suggest a Vitest Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Vitest workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.