node-jest/collect-v8-coverage
Lu zhiping c0606860b8 Import Upstream version 27.5.1~ds+~cs69.51.22 2022-07-16 13:02:45 +08:00
..
.github/workflows Import Upstream version 27.5.1~ds+~cs69.51.22 2022-07-16 13:02:45 +08:00
.gitignore Import Upstream version 27.5.1~ds+~cs69.51.22 2022-07-16 13:02:45 +08:00
CHANGELOG.md Import Upstream version 27.5.1~ds+~cs69.51.22 2022-07-16 13:02:45 +08:00
LICENSE Import Upstream version 27.5.1~ds+~cs69.51.22 2022-07-16 13:02:45 +08:00
README.md Import Upstream version 27.5.1~ds+~cs69.51.22 2022-07-16 13:02:45 +08:00
index.d.ts Import Upstream version 27.5.1~ds+~cs69.51.22 2022-07-16 13:02:45 +08:00
index.js Import Upstream version 27.5.1~ds+~cs69.51.22 2022-07-16 13:02:45 +08:00
package.json Import Upstream version 27.5.1~ds+~cs69.51.22 2022-07-16 13:02:45 +08:00
yarn.lock Import Upstream version 27.5.1~ds+~cs69.51.22 2022-07-16 13:02:45 +08:00

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