1 | import { CoverageMap, CoverageMapData } from 'istanbul-lib-coverage';
|
2 | import { Watermarks } from 'istanbul-lib-report';
|
3 | import { ReportType } from 'istanbul-reports';
|
4 | import Reporter, { ReporterProperties } from './Reporter';
|
5 | import Node from '../executors/Node';
|
6 | export { ReportType };
|
7 | export 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 | }
|
20 | export interface CoverageProperties extends ReporterProperties {
|
21 | filename?: string;
|
22 | directory?: string;
|
23 | watermarks?: Watermarks;
|
24 | }
|
25 | export declare type CoverageOptions = Partial<CoverageProperties>;
|