Merge pull request #26885 from dobesv/patch-3

[jest] Allow async extension functions
This commit is contained in:
Paul van Brenk
2018-06-27 13:59:49 -07:00
committed by GitHub
+1 -1
View File
@@ -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 {