Concurrent Tests in Vitest
From the Vitest cheat sheet ยท Test Structure ยท verified Nov 2026
Concurrent Tests
Run tests inside a file in parallel and opt individual tests out
typescript
describe.concurrent('api', () => {
test('users', async ({ expect }) => { /* ... */ })
test('posts', async ({ expect }) => { /* ... */ })
})
test.concurrent('runs in parallel', async ({ expect }) => {})
test('stays serial', { concurrent: false }, async () => {})๐ Use the context expect in concurrent tests so snapshots map right
โ ๏ธ v5 removed test.sequential; use { concurrent: false } instead
๐ Synchronous tests still run one by one even when marked concurrent
๐ก maxConcurrency (default 5) caps how many run at once
concurrentparallelshuffle
Continue with Vitest
Save the full cheat sheet or work through every related task.