跳至主要内容
版本: 22.5.0

JSCoverage.start() 方法

签名:

class JSCoverage {
start(options?: {
resetOnNavigation?: boolean;
reportAnonymousScripts?: boolean;
includeRawScriptCoverage?: boolean;
useBlockCoverage?: boolean;
}): Promise<void>;
}

参数

参数类型描述
选项{ resetOnNavigation?: boolean; reportAnonymousScripts?: boolean; includeRawScriptCoverage?: boolean; useBlockCoverage?: boolean; }(可选)

返回值

Promise<void>