From edd10e700770d90c5cd774da2d2e1d4d353ba138 Mon Sep 17 00:00:00 2001 From: Cacie Prins Date: Fri, 10 Jan 2025 15:50:13 -0500 Subject: [PATCH] fix type definition for getInvocationDetails --- packages/driver/src/cypress/stack_utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/driver/src/cypress/stack_utils.ts b/packages/driver/src/cypress/stack_utils.ts index 4c7ea36554e2..d08775403c52 100644 --- a/packages/driver/src/cypress/stack_utils.ts +++ b/packages/driver/src/cypress/stack_utils.ts @@ -114,6 +114,7 @@ type InvocationDetails = { line?: number originalFile?: string relativeFile?: string + stack: string } // used to determine codeframes for hook/test/etc definitions rather than command invocations @@ -134,7 +135,7 @@ const getInvocationDetails = (specWindow, config): InvocationDetails | undefined stack = stackWithLinesDroppedFromMarker(stack, '__cypress/tests', true) } - const details: InvocationDetails = getSourceDetailsForFirstLine(stack, config('projectRoot')) || {}; + const details: Omit = getSourceDetailsForFirstLine(stack, config('projectRoot')) || {}; (details as any).stack = stack