@puberty-labs/clits
Version:
CLiTS (Chrome Logging and Inspection Tool Suite) is a powerful Node.js library for automated Chrome browser testing, logging, and inspection. It provides a comprehensive suite of tools for monitoring network requests, console logs, DOM mutations, and more
32 lines (31 loc) • 817 B
TypeScript
import { ExtractedLog } from './extractor.js';
export interface ReportOptions {
logs: ExtractedLog[];
extractionOptions?: any;
includeErrorSummary?: boolean;
}
export interface ErrorSummary {
totalErrors: number;
errorTypes: Record<string, number>;
mostCommonErrors: Array<{
type: string;
count: number;
percentage: number;
}>;
}
export interface ReportSummary {
totalLogs: number;
fileTypes: Record<string, number>;
errors?: ErrorSummary;
}
export interface DebugReport {
timestamp: string;
logs: ExtractedLog[];
options: any;
summary: ReportSummary;
}
export declare class ReportGenerator {
static generateReport(options: ReportOptions): DebugReport;
private static analyzeFileTypes;
private static generateErrorSummary;
}