From 58acde3f48ff78282c849edc43564de58fa62da7 Mon Sep 17 00:00:00 2001 From: Art Date: Tue, 11 Apr 2023 12:32:47 +0700 Subject: [PATCH] remove fromPromise type --- packages/jest-snapshot/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-snapshot/src/index.ts b/packages/jest-snapshot/src/index.ts index 5d15ec18026f..ac4d1144bd33 100644 --- a/packages/jest-snapshot/src/index.ts +++ b/packages/jest-snapshot/src/index.ts @@ -546,7 +546,7 @@ export const toThrowErrorMatchingInlineSnapshot: MatcherFunctionWithContext< export const toThrowErrorMatchingNamedSnapshot: MatcherFunctionWithContext< Context, [snapshotName: string, fromPromise?: boolean] -> = function (received: unknown, snapshotName: unknown, fromPromise: unknown) { +> = function (received: unknown, snapshotName: unknown, fromPromise) { const matcherName = 'toThrowErrorMatchingNamedSnapshot'; if (typeof snapshotName !== 'string') {