mirror of
https://github.com/hanzoai/vitest.git
synced 2026-09-24 17:04:25 +00:00
4e056ee9d7
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vladimir Sheremet <[email protected]>
@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