UNPKG

@code-pushup/coverage-plugin

Version:
12 lines (11 loc) 697 B
import type { AuditOutputs } from '@code-pushup/models'; import type { CoverageType } from './config.js'; export declare const coverageDescription: Record<CoverageType, string>; /** * Since more code coverage does not necessarily mean better score, this optional override allows for defining custom coverage goals. * @param outputs original results * @param threshold threshold above which the score is to be 1 * @returns Outputs with overriden score (not value) to 1 if it reached a defined threshold. */ export declare function applyMaxScoreAboveThreshold(outputs: AuditOutputs, threshold: number): AuditOutputs; export declare const coverageTypeWeightMapper: Record<CoverageType, number>;