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.

More Vitest tasks

Back to the full Vitest cheat sheet