Skip to content

Commit

Permalink
fix type definition for getInvocationDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
cacieprins committed Jan 10, 2025
1 parent c6c9d28 commit edd10e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/driver/src/cypress/stack_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<InvocationDetails, 'stack'> = getSourceDetailsForFirstLine(stack, config('projectRoot')) || {};

(details as any).stack = stack

Expand Down

0 comments on commit edd10e7

Please sign in to comment.