Vitest · Command
vitest --coverage
Vitest can collect coverage with V8 or Istanbul. V8 is the default provider, and coverage collection must be enabled.
Last updated
- Since
- 3.2.0
Syntax
test: { coverage: { provider: 'v8' | 'istanbul' | 'custom', enabled: boolean } }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
@vitest/coverage-v8@vitest/coverage-istanbulcoverage.cleancoverage.cleanOnRerun