Eval
ed UserInvocationStack is sometimes off for projects using Typescript 5
#29614
Labels
Eval
ed UserInvocationStack is sometimes off for projects using Typescript 5
#29614
Current behavior
Currently, when a user is running cypress commands that are wrapped inside serializable closures that throw errors, the stack trace line/column is slightly off when running typescript 5 projects. This can be seen inside our
@packages/app
tests when running stack trace validation when validatingcy.intercept()
stack errors insidereporter.command_errors.cy.ts
in cypress command log (typescript 5)
stack trace when opened in IDE (slight mismatch) (typescript 5)
This was realized when we updated the monorepo to typescript 5. see https://github.com/cypress-io/cypress/pull/29568/files#r1613972217
Desired behavior
The code snippet in the command log should match the stack trace that is visited to the user's IDE
in cypress command log (typescript 4)
stack trace when opened in IDE (slight mismatch) (typescript 4)
Test code to reproduce
see
@packages/app
tests when running stack trace validation when validatingcy.intercept()
stack errors insidereporter.command_errors.cy.ts
Cypress Version
13.10.0
Node version
v18.17.1
Operating System
macOS 14.3
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: