UNPKG

992 BTypeScriptView Raw
1import { CoverageMap, CoverageMapData } from 'istanbul-lib-coverage';
2import { Watermarks } from 'istanbul-lib-report';
3import { ReportType } from 'istanbul-reports';
4import Reporter, { ReporterProperties } from './Reporter';
5import Node from '../executors/Node';
6export { ReportType };
7export default abstract class Coverage extends Reporter implements CoverageProperties {
8 abstract readonly reportType: ReportType;
9 readonly executor: Node;
10 filename?: string;
11 directory?: string;
12 watermarks?: Watermarks;
13 constructor(executor: Node, options?: CoverageOptions);
14 getReporterOptions(): {
15 [key: string]: any;
16 };
17 createCoverageReport(type: ReportType, data: CoverageMapData | CoverageMap): Promise<void>;
18 runEnd(): void | Promise<any>;
19}
20export interface CoverageProperties extends ReporterProperties {
21 filename?: string;
22 directory?: string;
23 watermarks?: Watermarks;
24}
25export declare type CoverageOptions = Partial<CoverageProperties>;