UNPKG

@hayspec/reporter

Version:

Reporter for Hayspec framework.

21 lines (20 loc) 799 B
import { Reporter, SpecStartNote, TestStartNote, TestEndNote, AssertionNote } from '@hayspec/spec'; import { Printer } from '../lib/printer'; export declare class DefaultReporter extends Reporter { protected printer: Printer; protected assertionResults: boolean[]; passedCount: number; skippedCount: number; failedCount: number; constructor({ mute }?: { mute?: boolean; }); reset(): void; protected onBegin(): void; protected onEnd(): void; protected onSpecStartNote(note: SpecStartNote): void; protected onTestStartNote(note: TestStartNote): void; protected onTestEndNote(note: TestEndNote): void; protected onAssertionNote(note: AssertionNote): void; protected getDurationColor(duration: number): "redBright" | "yellowBright"; }