Skip to content

Commit a06645e

Browse files
committed
Merge branch 'main' into fix/issue-14387
2 parents 6f7d689 + 8426b5d commit a06645e

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
- `[jest-mock]` Revert [#13692](https://github.com/jestjs/jest/pull/13692) as it was a breaking change ([#14429](https://github.com/jestjs/jest/pull/14429))
1212
- `[jest-mock]` Revert [#13866](https://github.com/jestjs/jest/pull/13866) as it was a breaking change ([#14429](https://github.com/jestjs/jest/pull/14429))
1313
- `[jest-mock]` Revert [#13867](https://github.com/jestjs/jest/pull/13867) as it was a breaking change ([#14429](https://github.com/jestjs/jest/pull/14429))
14-
- `[jest-runtime]` Fix dynamic esm import module bug when loaded module through `jest.isolateModulesAsync` ([14397](https://github.com/jestjs/jest/pull/14397))
14+
- `[@jest/reporters]` Marks Reporter's hooks as optional ([#14433](https://github.com/jestjs/jest/pull/14433))
15+
- `[jest-runtime]` Fix dynamic ESM import module bug when loaded module through `jest.isolateModulesAsync` ([14397](https://github.com/jestjs/jest/pull/14397))
1516

1617
### Chore & Maintenance
1718

packages/jest-reporters/src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ export interface Reporter {
4242
test: Test,
4343
testCaseResult: TestCaseResult,
4444
) => Promise<void> | void;
45-
readonly onRunStart: (
45+
readonly onRunStart?: (
4646
results: AggregatedResult,
4747
options: ReporterOnStartOptions,
4848
) => Promise<void> | void;
4949
readonly onTestStart?: (test: Test) => Promise<void> | void;
5050
readonly onTestFileStart?: (test: Test) => Promise<void> | void;
51-
readonly onRunComplete: (
51+
readonly onRunComplete?: (
5252
testContexts: Set<TestContext>,
5353
results: AggregatedResult,
5454
) => Promise<void> | void;
55-
readonly getLastError: () => Error | void;
55+
readonly getLastError?: () => Error | void;
5656
}
5757

5858
export type ReporterContext = {

0 commit comments

Comments
 (0)