mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Move #19662 fix to a fake interface as per PR discussion.
This commit is contained in:
Vendored
+2
-1
@@ -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>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user