diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index dda9bded66..0c595a5b82 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -1046,11 +1046,12 @@ declare namespace jest { path: Path; } + interface Set {} // 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>; + onRunComplete?(contexts: Set, results: AggregatedResult): Maybe>; getLastError?(): Maybe; }