zoorpha_rustshare-obsidian-.../node_modules/@vitest/coverage-v8
2026-06-15 12:19:23 +02:00
..
dist rustshare obsidian plugin 2026-06-15 12:19:23 +02:00
LICENSE rustshare obsidian plugin 2026-06-15 12:19:23 +02:00
package.json rustshare obsidian plugin 2026-06-15 12:19:23 +02:00
README.md rustshare obsidian plugin 2026-06-15 12:19:23 +02:00

@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