From e754cf726b013f9db0d5aae32a12ae959ad2dee8 Mon Sep 17 00:00:00 2001 From: Tom Mrazauskas Date: Sat, 8 Oct 2022 18:25:39 +0300 Subject: [PATCH] feat(expect): expose `*ExpectationResult` types (#13411) --- CHANGELOG.md | 1 + packages/expect/src/index.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 245196b27fb8..8db5b756640b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/packages/expect/src/index.ts b/packages/expect/src/index.ts index 8ed6390738fb..af07fff87287 100644 --- a/packages/expect/src/index.ts +++ b/packages/expect/src/index.ts @@ -53,6 +53,7 @@ import type { export {AsymmetricMatcher} from './asymmetricMatchers'; export type { + AsyncExpectationResult, AsymmetricMatchers, BaseExpect, Expect, @@ -63,6 +64,7 @@ export type { MatcherState, MatcherUtils, Matchers, + SyncExpectationResult, } from './types'; export class JestAssertionError extends Error {