Skip to content

coverage

const coverage: object

Defined in: coverage.ts:4

Default Vitest coverage options: the V8 provider with text and lcov reports.

all: boolean = false

Off, so only files loaded by tests are counted in coverage.

exclude: string[]

Paths excluded from coverage, starting from Vitest’s own defaults.

provider: "v8"

The coverage provider: V8’s built-in coverage.

reporter: string[]

The report formats: a terminal text table and an lcov file.