Skip to content

Commit

Permalink
fix(@jest/test-result): allow TestResultsProcessor type to return a…
Browse files Browse the repository at this point in the history
… Promise (#13950)
  • Loading branch information
mrazauskas committed Feb 24, 2023
1 parent eccb9b0 commit 92630a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,7 @@

- `[jest-circus]` Send test case results for `todo` tests ([#13915](https://github.com/facebook/jest/pull/13915))
- `[jest-circus]` Update message printed on test timeout ([#13830](https://github.com/facebook/jest/pull/13830))
- `[@jest/test-result]` Allow `TestResultsProcessor` type to return a Promise ([#13950](https://github.com/facebook/jest/pull/13950))

### Chore & Maintenance

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-test-result/src/types.ts
Expand Up @@ -77,7 +77,7 @@ export type AggregatedResult = AggregatedResultWithoutCoverage & {

export type TestResultsProcessor = (
results: AggregatedResult,
) => AggregatedResult;
) => AggregatedResult | Promise<AggregatedResult>;

export type Suite = {
title: string;
Expand Down

0 comments on commit 92630a6

Please sign in to comment.