From b580b70dcdb1afbc757aa46a062ddde2049f49ba Mon Sep 17 00:00:00 2001 From: Technion Date: Thu, 7 Dec 2017 04:42:26 +0000 Subject: [PATCH] Changes Jest type to use array rather than Set. Set may be technically stricter but as per #19662, there have been a number of associated problems with this. --- types/jest/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 5c2152694f..dda9bded66 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -1050,7 +1050,7 @@ declare namespace jest { onTestResult?(test: Test, testResult: TestResult, aggregatedResult: AggregatedResult): void; onRunStart?(results: AggregatedResult, options: ReporterOnStartOptions): void; onTestStart?(test: Test): void; - onRunComplete?(contexts: Set, results: AggregatedResult): Maybe>; + onRunComplete?(contexts: [Context], results: AggregatedResult): Maybe>; getLastError?(): Maybe; }