@socketsecurity/lib
Version:
Core utilities and infrastructure for Socket.dev security tools
9 lines (8 loc) • 401 B
TypeScript
import type { CodeCoverageResult, GetCodeCoverageOptions } from './types';
/**
* Get code coverage metrics from v8 coverage-final.json.
*
* @throws {Error} When coverage file doesn't exist and generateIfMissing is false.
* @throws {Error} When coverage data format is invalid.
*/
export declare function getCodeCoverage(options?: GetCodeCoverageOptions | undefined): Promise<CodeCoverageResult>;