UNPKG

approvals

Version:

Approval Tests Library - Capturing Human Intelligence

23 lines (22 loc) 982 B
import { ChildProcessWithoutNullStreams } from "child_process"; import { Reporter } from "../Core/Reporter"; import { Config } from "../config"; export declare class GenericDiffReporterBase implements Reporter { name: string; exePath: string; private _reporterFileLookedUp; setCommandArgs: (approved: string, received: string) => string[]; modifyCommandOptions: (commandOptions: any) => any; private _reporterFileLookedUpAndFound; constructor(name: string); isReporterAvailable(): boolean; canImageDiff(): boolean; canReportOn(fileName: string): boolean; spawn(exe: string, args: string[], cmdOptions?: any): ChildProcessWithoutNullStreams; spawnSync(exe: string, args: string[], cmdOptions?: any): void; report(approved: string, received: string, options?: Partial<Config>): void; getCommandArguments(approved: string, received: string, options?: Partial<Config>): { cmdOptions: any; args: string[]; }; }