UNPKG

mocha-multiple-sessions-detailed-runner

Version:
19 lines 940 B
import type { ISessionMetaRepository, ExecutionSummary } from '../../interfaces/repositories/session-meta-repository'; import type { SessionMeta, SessionState } from '../../interfaces/core/types'; export declare class SessionMetaRepository implements ISessionMetaRepository { private sessions; save(sessionMeta: SessionMeta): void; findByLabel(label: string): SessionMeta | null; findAll(): SessionMeta[]; delete(label: string): boolean; clear(): void; exists(label: string): boolean; updateState(label: string, state: Partial<SessionState>): void; getStates(): Record<string, SessionState>; markAsRunning(label: string): void; markAsCompleted(label: string, result: any): void; markAsFailed(label: string, error: Error): void; getByStatus(status: SessionState['status']): SessionMeta[]; getExecutionSummary(): ExecutionSummary; } //# sourceMappingURL=session-meta-repository.d.ts.map