mirror of
https://github.com/hanzoai/vitest.git
synced 2026-10-30 14:46:34 +00:00
782 B
782 B
@vitest/coverage-istanbul
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