Skip to main content
Version: 24.38.0

Coverage.stopJSCoverage() 方法

🌐 Coverage.stopJSCoverage() method

Promise 解析所有脚本的覆盖率报告数组。

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

语法

🌐 Signature

class Coverage {
stopJSCoverage(): Promise<JSCoverageEntry[]>;
}

返回:

Promise<JSCoverageEntry[]>

附注

🌐 Remarks

默认情况下,JavaScript 覆盖率不包括匿名脚本。然而,带有 sourceURL 的脚本会被报告。

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