puppeteer/website/versioned_docs/version-9.1.1/puppeteer.coverage.stopjscoverage.md
2021-08-10 11:09:48 +01:00

638 B

Home > puppeteer > Coverage > stopJSCoverage

Coverage.stopJSCoverage() method

Signature:

stopJSCoverage(): Promise<CoverageEntry[]>;

Returns:

Promise<CoverageEntry[]>

Promise that resolves to the array of coverage reports for all scripts.

Remarks

JavaScript Coverage doesn't include anonymous scripts by default. However, scripts with sourceURLs are reported.