vitest
Fast, modern testing framework built for Vite, offering seamless integration, TypeScript support, and a Jest-compatible API for unit, integration, and snapshot testing. tldr-pages
On several platforms
Several platforms
Run all available tests
vitest runIdentifyRun the test suites from the given files
vitest run path/to/file1 path/to/file2 ...IdentifyRun the test suites from files within the current and subdirectories, whose paths match the given regex
vitest run regex1 regex2 ...IdentifyRun the tests whose names match the given regex
vitest run --testNamePattern regexIdentifyWatch files for changes and automatically re-run related tests
vitestIdentifyRun tests with coverage
vitest run --coverageIdentifyRun all tests but stops immediately after the first test failure
vitest run --bail=1IdentifyDisplay help
vitest --helpIdentify