UNPKG

@testomatio/reporter

Version:
30 lines (29 loc) 1.04 kB
/** * Returns the formatted stack including the stack trace, steps, and logs. * @param {Object} params - Parameters for formatting logs * @param {string} params.error - Error message * @param {Array|any} params.steps - Test steps (array or other types) * @param {string} params.logs - Test logs * @returns {string} */ export function formatLogs({ error, steps, logs }: { error: string; steps: any[] | any; logs: string; }): string; /** * Formats an error with stack trace and diff information * @param {Error & {inspect?: () => string, operator?: string, diff?: string, actual?: any, expected?: any}} error * The error object to format * @param {string} [message] - Optional error message override * @returns {string} */ export function formatError(error: Error & { inspect?: () => string; operator?: string; diff?: string; actual?: any; expected?: any; }, message?: string): string; export const stripColors: typeof stripVTControlCharacters; import { stripVTControlCharacters } from 'util';