diff --git a/CHANGELOG.md b/CHANGELOG.md index f93141244e99..4ac7e81d9a9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/jest-test-result/src/types.ts b/packages/jest-test-result/src/types.ts index 3bb763d14b6e..9bff7590784c 100644 --- a/packages/jest-test-result/src/types.ts +++ b/packages/jest-test-result/src/types.ts @@ -77,7 +77,7 @@ export type AggregatedResult = AggregatedResultWithoutCoverage & { export type TestResultsProcessor = ( results: AggregatedResult, -) => AggregatedResult; +) => AggregatedResult | Promise; export type Suite = { title: string;