Files
SnowLuma/.pnpm-store/v11/files/6e/2a0f17c7da2f64b36c49e134ac0b3ded95d2a05076a9a8d23e3adcb7c60c3689fe4edb61ded266374299cbf55e272a6f5bb334e1f84cd238afa8d7b7ced767
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

31 lines
782 B
Plaintext

# @vitest/coverage-istanbul
[![NPM version](https://img.shields.io/npm/v/@vitest/coverage-istanbul?color=a1b858&label=)](https://npmx.dev/package/@vitest/coverage-istanbul)
Vitest coverage provider that instruments code coverage via [istanbul](https://istanbul.js.org/).
## Installation
After installing the package, specify `istanbul` in the `coverage.provider` field of your Vitest configuration:
```ts
// vitest.config.ts
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
coverage: {
provider: 'istanbul',
},
},
})
```
Then run Vitest with coverage:
```sh
npx vitest --coverage
```
[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/coverage-istanbul) | [Documentation](https://vitest.dev/guide/coverage)