|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
377 bytes
|
| Line | |
|---|
| 1 | # collect-v8-coverage
|
|---|
| 2 |
|
|---|
| 3 | Use this module to start and stop the V8 inspector manually and collect precise coverage.
|
|---|
| 4 |
|
|---|
| 5 | ```js
|
|---|
| 6 | const {CoverageInstrumenter} = require('collect-v8-coverage');
|
|---|
| 7 |
|
|---|
| 8 | const instrumenter = new CoverageInstrumenter();
|
|---|
| 9 |
|
|---|
| 10 | await instrumenter.startInstrumenting();
|
|---|
| 11 |
|
|---|
| 12 | // require some modules, run some code
|
|---|
| 13 |
|
|---|
| 14 | const coverage = await instrumenter.stopInstrumenting();
|
|---|
| 15 | ```
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.