UNPKG

@alphabin/trx

Version:

TRX reporter for Playwright tests with Azure Blob Storage upload support

70 lines (69 loc) 2.03 kB
import { AzureUploadMetadata } from '../types'; /** * Console output formatting utility for better user experience */ export declare class ConsoleFormatter { private static readonly colors; private static readonly icons; /** * Formats the main TRX banner */ static formatBanner(): string; /** * Formats upload status message */ static formatUploadStatus(status: AzureUploadMetadata, fileCount?: number): string; /** * Formats server response message */ static formatServerResponse(success: boolean): string; /** * Formats URL display */ static formatUrl(url: string, label: string, icon?: string): string; /** * Formats error message for user display */ static formatError(message: string, details?: string): string; /** * Formats warning message */ static formatWarning(message: string, suggestion?: string): string; /** * Formats info message */ static formatInfo(message: string): string; /** * Formats success message */ static formatSuccess(message: string): string; /** * Formats progress message */ static formatProgress(message: string): string; /** * Formats a divider line */ static formatDivider(): string; /** * Formats the complete results summary */ static formatResultsSummary(serverSuccess: boolean, testRunId: string | undefined, serverUrl: string, azureStatus: AzureUploadMetadata, fileCount?: number): string; /** * Formats configuration warnings */ static formatConfigWarnings(warnings: string[]): string; /** * Removes color codes for environments that don't support them */ static stripColors(text: string): string; /** * Checks if the current environment supports colors */ static supportsColor(): boolean; /** * Formats text with color support detection */ static format(text: string): string; } export default ConsoleFormatter;