Skip to content

Commit

Permalink
feat(expect): expose *ExpectationResult types (#13411)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrazauskas committed Oct 8, 2022
1 parent 2dd05f4 commit e754cf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,7 @@
- `[jest-config]` Add `readInitialConfig` utility function ([#13356](https://github.com/facebook/jest/pull/13356))
- `[jest-core]` Enable testResultsProcessor to be async ([#13343](https://github.com/facebook/jest/pull/13343))
- `[expect, @jest/expect-utils]` Allow `isA` utility to take a type argument ([#13355](https://github.com/facebook/jest/pull/13355))
- `[expect]` Expose `AsyncExpectationResult` and `SyncExpectationResult` types ([#13411](https://github.com/facebook/jest/pull/13411))

### Fixes

Expand Down
2 changes: 2 additions & 0 deletions packages/expect/src/index.ts
Expand Up @@ -53,6 +53,7 @@ import type {

export {AsymmetricMatcher} from './asymmetricMatchers';
export type {
AsyncExpectationResult,
AsymmetricMatchers,
BaseExpect,
Expect,
Expand All @@ -63,6 +64,7 @@ export type {
MatcherState,
MatcherUtils,
Matchers,
SyncExpectationResult,
} from './types';

export class JestAssertionError extends Error {
Expand Down

0 comments on commit e754cf7

Please sign in to comment.