mocha-multiple-sessions-detailed-runner
Version:
High-level API for multi-session Mocha tests with detailed reporting
23 lines • 907 B
TypeScript
export interface IReportRepository {
getReportData(resultKey: string): any | null;
hasReport(resultKey: string): boolean;
clearReport(resultKey: string): void;
getAllReports(): Record<string, any>;
getReportMetadata(resultKey: string): ReportMetadata | null;
waitForReport(resultKey: string, timeoutMs?: number): Promise<any>;
watchReport(resultKey: string, callback: (report: any) => void): () => void;
generateResultKey(sessionLabel: string): string;
getWindowVariable(key: string): any;
setWindowVariable(key: string, value: any): void;
deleteWindowVariable(key: string): void;
getReportSize(resultKey: string): number;
validateReport(reportData: any): boolean;
}
export interface ReportMetadata {
size: number;
generatedAt: Date;
sessionLabel: string;
stats: any;
isValid: boolean;
}
//# sourceMappingURL=report-repository.d.ts.map