max_liu b7ab7c8514 chore: 更新node_modules依赖文件 hace 2 meses
..
CHANGELOG.md b7ab7c8514 chore: 更新node_modules依赖文件 hace 2 meses
LICENSE b7ab7c8514 chore: 更新node_modules依赖文件 hace 2 meses
README.md b7ab7c8514 chore: 更新node_modules依赖文件 hace 2 meses
index.d.ts b7ab7c8514 chore: 更新node_modules依赖文件 hace 2 meses
index.js b7ab7c8514 chore: 更新node_modules依赖文件 hace 2 meses
package.json b7ab7c8514 chore: 更新node_modules依赖文件 hace 2 meses

README.md

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();