cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.51k stars 3.2k forks source link

Sourcemaps are broken in Cypress in TypeScript version 5 #28483

Open jennifer-shehane opened 11 months ago

jennifer-shehane commented 11 months ago

Current behavior

Sourcemaps are broken in some version of TS 5. Something like the behavior below may happen where there is no sourcemap

Screen Shot 2023-12-08 at 1 21 58 PM

Desired behavior

In order to get sourcemaps to work we have to do some monkeypatching to force the sourcemap options to generate them the way we expect. There's likely something that's changed in some version of TS 5 here.

Test code to reproduce

TS code - don't have repro

Cypress Version

13.6.1

Node version

18

Operating System

Mac

Debug Logs

No response

Other

No response

cypress-app-bot commented 5 months ago

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

TimVee commented 5 months ago

The line numbers of assertions errors in run mode are still incorrect.