New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@vitest/coverage-v8

Package Overview
Dependencies
Maintainers
5
Versions
180
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
5.0.2
Version published
Weekly downloads
40M
-7.38%
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 25 Sep 2026

Related posts