UNPKG

regressify

Version:
15 lines (14 loc) 988 B
import { Config } from 'backstopjs'; import { BackstopReport, HtmlReportSummary } from './types'; export declare function calculateFileHash(filePath: string): string; export declare function calculateTextHash(text: string): string; export declare function applyHashesToConfigText(configText: string, hashes: Record<string, string>): string; export declare function applyConfigHashToHtmlIndex(htmlIndexText: string, configHash: string): string; export declare function summarizeReport(report: BackstopReport): HtmlReportSummary; export declare function processTestSuite(backstopDir: string, config: Config, hashes: Record<string, string>): HtmlReportSummary | null; export declare function generateSummaryRows(summaries: HtmlReportSummary[]): string; export declare const generateHtmlReportSummary: (backstopDir: string, summaries: HtmlReportSummary[]) => void; export declare function snapshot({ configs, backstopDirName }: { configs: Config[]; backstopDirName: string; }): void;