collect-v8-coverage

Use this module to start and stop the V8 inspector manually and collect precise coverage.

MIT 4 个版本
安装
npm install collect-v8-coverage
yarn add collect-v8-coverage
pnpm add collect-v8-coverage
bun add collect-v8-coverage
README

collect-v8-coverage

Use this module to start and stop the V8 inspector manually and collect precise coverage.

const {CoverageInstrumenter} = require('collect-v8-coverage');

const instrumenter = new CoverageInstrumenter();

await instrumenter.startInstrumenting();

// require some modules, run some code

const coverage = await instrumenter.stopInstrumenting();
版本列表
1.0.3 2025-10-15
1.0.2 2023-07-05
1.0.1 2020-04-02
1.0.0 2019-12-16