# @vitest/coverage-v8

> V8 coverage provider for Vitest

Latest version **5.0.1** (published 2026-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vitest/coverage-v8
pnpm add @vitest/coverage-v8
yarn add @vitest/coverage-v8
bun add @vitest/coverage-v8
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.1 |
| Published | 2026-09-15 |
| First published | 2023-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 28.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 17093 |
| Author | Anthony Fu <anthonyfu117@hotmail.com> |
| Maintainers | ariperkkio, antfu, hiogawa, oreanno, yyx990803 |
| Keywords | vite, vitest, test, coverage, v8 |

## Links

- npm: https://www.npmjs.com/package/@vitest/coverage-v8
- Repository: https://github.com/vitest-dev/vitest
- Homepage: https://vitest.dev/guide/coverage
- Issues: https://github.com/vitest-dev/vitest/issues
- Funding: https://opencollective.com/vitest
- npm.io page: https://npm.io/package/@vitest/coverage-v8

## Dependencies (8)

- [obug](https://npm.io/package/obug.md) ^2.1.4
- [std-env](https://npm.io/package/std-env.md) ^4.2.0
- [magicast](https://npm.io/package/magicast.md) ^0.5.4
- [tinyrainbow](https://npm.io/package/tinyrainbow.md) ^3.1.1
- [@bcoe/v8-coverage](https://npm.io/package/@bcoe/v8-coverage.md) ^1.0.2
- [ast-v8-to-istanbul](https://npm.io/package/ast-v8-to-istanbul.md) ^1.0.5
- [@vitest/istanbul-lib-report](https://npm.io/package/@vitest/istanbul-lib-report.md) ^1.0.0
- [@vitest/istanbul-lib-coverage](https://npm.io/package/@vitest/istanbul-lib-coverage.md) ^1.0.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 5.0.1 (latest) — 2026-09-15
- 5.0.0-rc.4 (rc) — 2026-08-31
- 5.0.0-beta.7 (beta) — 2026-07-24
- 3.2.7 (V3) — 2026-07-06
- 5.0.0 — 2026-09-03
- 5.0.0-rc.3 — 2026-08-28
- 4.1.11 — 2026-08-18
- 5.0.0-rc.2 — 2026-08-17
- 5.0.0-rc.1 — 2026-08-11
- 5.0.0-beta.6 — 2026-07-06
- 4.1.10 — 2026-07-06
- 5.0.0-beta.5 — 2026-06-15
- 4.1.9 — 2026-06-15
- 3.2.6 — 2026-06-01
- 5.0.0-beta.4 — 2026-06-01
- … 163 more at https://npm.io/package/@vitest/coverage-v8/versions

## README

# @vitest/coverage-v8

[![NPM version](https://img.shields.io/npm/v/@vitest/coverage-v8?color=a1b858&label=)](https://npmx.dev/package/@vitest/coverage-v8)

Vitest coverage provider that supports native code coverage via [v8](https://v8.dev/blog/javascript-code-coverage).

## Installation

After installing the package, specify `v8` in the `coverage.provider` field of your Vitest configuration (or leave it empty as it is the default provider):

```ts
// vitest.config.ts
import { defineConfig } from 'vitest/config'

export default defineConfig({
  test: {
    coverage: {
      provider: 'v8',
    },
  },
})
```

Then run Vitest with coverage:

```sh
npx vitest --coverage
```

[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/coverage-v8) | [Documentation](https://vitest.dev/guide/coverage)

---
_Source: https://npm.io/package/@vitest/coverage-v8 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
