peach a19a732be8 commit message | 2 年之前 | |
---|---|---|
.. | ||
CHANGELOG.md | 2 年之前 | |
LICENSE | 2 年之前 | |
README.md | 2 年之前 | |
index.d.ts | 2 年之前 | |
index.js | 2 年之前 | |
package.json | 2 年之前 |
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();