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') {