-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReporter.ts
More file actions
30 lines (23 loc) · 1.04 KB
/
Reporter.ts
File metadata and controls
30 lines (23 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function */
import { ValidConfig } from "./Config";
import { TestInTestFile } from "./TestInTestFile";
import { TestResult } from "./TestResult";
export abstract class Reporter {
constructor() {
this.onRuntimeStart = this.onRuntimeStart.bind(this);
this.onRunStart = this.onRunStart.bind(this);
this.onTestStart = this.onTestStart.bind(this);
this.onTestEnd = this.onTestEnd.bind(this);
this.onRunEnd = this.onRunEnd.bind(this);
}
// @ts-ignore: unused argument/s
onRuntimeStart(config: ValidConfig): void {}
// @ts-ignore: unused argument/s
onRunStart(testsInTestFiles: Array<TestInTestFile>): void {}
// @ts-ignore: unused argument/s
onTestStart(testInTestFile: TestInTestFile): void {}
// @ts-ignore: unused argument/s
onTestEnd(testInTestFile: TestInTestFile, testResult: TestResult): void {}
// @ts-ignore: unused argument/s
onRunEnd(results: Array<[TestInTestFile, TestResult]>): void {}
}