Skip to content
masterclass Buddy

Vitest · Pipe

test.coverage

Vitest can collect coverage with V8 or Istanbul, with V8 used by default. Enable it with the CLI or config, then choose included files, excluded files, reporters, and thresholds.

Last updated

Since
3.2.0

Syntax

test.coverage.provider = 'v8' | 'istanbul' | 'custom'

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • coverage.enabled
  • coverage.provider
  • coverage.include
  • coverage.exclude
  • coverage.reporter
  • coverage.thresholds
  • coverage.reportsDirectory
  • coverage.customProviderModule

Source: Coverage | Guide | Vitest. Checked 2026-11-03.