UNPKG

@jawis/jatec

Version:
48 lines (47 loc) 1.01 kB
import { ClientTestReport, TestCurLogs, TestResult } from "./internal"; export type OnTestResult = (id: string, result: TestResult) => void; export type RogueData = { id?: string; data: TestCurLogs; }; export type OnRogue = (rogue: RogueData) => void; export type ClientMessage = { type: "stopRunning" | "runAllTests" | "runCurrentSelection"; } | { type: "prependTests"; ids: string[]; } | { type: "acceptTestLogs"; testIds: string[]; } | { type: "acceptTestLog"; testId: string; logName: string; } | { type: "compareTestLog"; testId: string; logName: string; } | { type: "openFile"; file: string; line?: number; } | { type: "openTest"; file: string; }; export type ServerMessage = { type: "IsRunning"; data: boolean; } | { type: "TestSelection"; data: string[][]; } | { type: "TestCaseStarts"; data: string; } | { type: "TestReport"; data: ClientTestReport; } | { type: "OnRogue"; data: RogueData; };