max_liu b7ab7c8514 chore: 更新node_modules依赖文件 пре 2 недеља
..
CHANGELOG.md b7ab7c8514 chore: 更新node_modules依赖文件 пре 2 недеља
LICENSE b7ab7c8514 chore: 更新node_modules依赖文件 пре 2 недеља
README.md b7ab7c8514 chore: 更新node_modules依赖文件 пре 2 недеља
index.d.ts b7ab7c8514 chore: 更新node_modules依赖文件 пре 2 недеља
index.js b7ab7c8514 chore: 更新node_modules依赖文件 пре 2 недеља
package.json b7ab7c8514 chore: 更新node_modules依赖文件 пре 2 недеља

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