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.
This commit is contained in:
Technion
2017-12-07 04:42:26 +00:00
parent b13b82c214
commit b580b70dcd
+1 -1
View File
@@ -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<Context>, results: AggregatedResult): Maybe<Promise<void>>;
onRunComplete?(contexts: [Context], results: AggregatedResult): Maybe<Promise<void>>;
getLastError?(): Maybe<Error>;
}