Skip to content

Commit e754cf7

Browse files
authored
feat(expect): expose *ExpectationResult types (#13411)
1 parent 2dd05f4 commit e754cf7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- `[jest-config]` Add `readInitialConfig` utility function ([#13356](https://github.com/facebook/jest/pull/13356))
66
- `[jest-core]` Enable testResultsProcessor to be async ([#13343](https://github.com/facebook/jest/pull/13343))
77
- `[expect, @jest/expect-utils]` Allow `isA` utility to take a type argument ([#13355](https://github.com/facebook/jest/pull/13355))
8+
- `[expect]` Expose `AsyncExpectationResult` and `SyncExpectationResult` types ([#13411](https://github.com/facebook/jest/pull/13411))
89

910
### Fixes
1011

packages/expect/src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ import type {
5353

5454
export {AsymmetricMatcher} from './asymmetricMatchers';
5555
export type {
56+
AsyncExpectationResult,
5657
AsymmetricMatchers,
5758
BaseExpect,
5859
Expect,
@@ -63,6 +64,7 @@ export type {
6364
MatcherState,
6465
MatcherUtils,
6566
Matchers,
67+
SyncExpectationResult,
6668
} from './types';
6769

6870
export class JestAssertionError extends Error {

0 commit comments

Comments
 (0)