diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 10d3b5bf81..5abfa4eea5 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -273,7 +273,7 @@ declare namespace jest { } interface ExpectExtendMap { - [key: string]: (this: MatcherUtils, received: any, ...actual: any[]) => { message(): string, pass: boolean }; + [key: string]: (this: MatcherUtils, received: any, ...actual: any[]) => { message(): string, pass: boolean } | Promise<{ message(): string, pass: boolean }>; } interface SnapshotSerializerOptions {