Move #19662 fix to a fake interface as per PR discussion.

This commit is contained in:
Technion
2017-12-14 10:43:13 +00:00
parent b580b70dcd
commit 0e06269e02
+2 -1
View File
@@ -1046,11 +1046,12 @@ declare namespace jest {
path: Path;
}
interface Set<T> {} // To allow non-ES6 users the Set below
interface Reporter {
onTestResult?(test: Test, testResult: TestResult, aggregatedResult: AggregatedResult): void;
onRunStart?(results: AggregatedResult, options: ReporterOnStartOptions): void;
onTestStart?(test: Test): void;
onRunComplete?(contexts: [Context], results: AggregatedResult): Maybe<Promise<void>>;
onRunComplete?(contexts: Set<Context>, results: AggregatedResult): Maybe<Promise<void>>;
getLastError?(): Maybe<Error>;
}