blob: 0de661b50ce9e86c23043b7a590a0ad0251c63e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import { LogMessageWithStack } from './log_message.js';
// MAINTENANCE_TODO: Add warn expectations
export type Expectation = 'pass' | 'skip' | 'fail';
export type Status = 'running' | 'warn' | Expectation;
export interface TestCaseResult {
status: Status;
timems: number;
}
export interface LiveTestCaseResult extends TestCaseResult {
logs?: LogMessageWithStack[];
}
export interface TransferredTestCaseResult extends TestCaseResult {
// When transferred from a worker, a LogMessageWithStack turns into a generic Error
// (its prototype gets lost and replaced with Error).
logs?: Error[];
}
|