npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@vitest/coverage-istanbul

4.1.3

@GitHub Actions

npmHomeRepoSnykSocket
Downloads:365630
$ npm install @vitest/coverage-istanbul
DailyWeeklyMonthlyYearly

@vitest/coverage-istanbul

NPM version

Vitest coverage provider that instruments code coverage via istanbul.

Installation

After installing the package, specify istanbul in the coverage.provider field of your Vitest configuration:

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

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

Then run Vitest with coverage:

npx vitest --coverage

GitHub | Documentation