zhibo/archive/extras/live-streaming/node_modules/collect-v8-coverage
2025-12-22 11:14:06 +08:00
..
CHANGELOG.md chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
index.d.ts chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
index.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
LICENSE chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
package.json chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
README.md chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00

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