🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@vitest/coverage-v8

Package Overview
Dependencies
Maintainers
5
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitest/coverage-v8

V8 coverage provider for Vitest

Source
npmnpm
Version
4.1.9
Version published
Weekly downloads
32M
12.6%
Maintainers
5
Weekly downloads
 
Created
Source

@vitest/coverage-v8

NPM version

Vitest coverage provider that supports native code coverage via v8.

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):

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

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

Then run Vitest with coverage:

npx vitest --coverage

GitHub | Documentation

Keywords

vite

FAQs

Package last updated on 15 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts