https://cypress.io logo
Show correct line number when using Typescript?
# i-need-help
a
Hi, I'm using TypeScript to write my tests, but in the command log, when a test fails, the line number is off by a dozens, if not hundreds of lines. Is there a configuration I might be missing to use the write sourceMaps so that it displays the right line numbers? Thx
m
Hi @abundant-architect-46477 There has been a related issue reported recently https://github.com/cypress-io/cypress/issues/26668, although it doesn't look like it is specific to TypeScript.
a
Thx @many-airline-45402 I'll have a look at this issue!