import type { EnvironmentResult } from '../environment/index.ts'; export interface FailureMessageOptions { /** The integration that was running, e.g. 'playwright' or 'storybook'. */ integrationType: string; /** The command that failed, when the failure came from a spawned command. */ command?: Array | undefined; /** The exit code of the failed command, when it exited on its own. */ exitCode?: number | undefined; /** The error that caused the failure, when we caught one. */ error?: string | undefined; environment: Pick; } /** * Build the message we send to Happo when a job has to be cancelled because * something failed locally. This message is often the only thing a developer * sees in Happo, so it needs to say what failed and where to look for the * details. */ export default function formatFailureMessage({ integrationType, command, exitCode, error, environment: { ci, ciJobUrl }, }: FailureMessageOptions): string; //# sourceMappingURL=formatFailureMessage.d.ts.map