cypress-io / cypress

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

code frames do not show up in vue + vite #30584

Open AtofStryker opened 2 weeks ago

AtofStryker commented 2 weeks ago

Current behavior

It looks like codeFrames do not work with vite and vue when running Cypress Component Testing. This seems to only happen for .vue files (cypress related files work fine)

Screenshot 2024-11-07 at 5 55 13 PM

Desired behavior

I expect to see the error in the code frame that is thrown from the .vue component (this is from webpack)

Screenshot 2024-11-07 at 5 53 24 PM

Test code to reproduce

see Error.vue inside vue3-webpack-ts inside the system-tests projects

Cypress Version

N/A

Node version

N/A

Operating System

N/A

Debug Logs

N/A

Other

No response

AtofStryker commented 2 weeks ago

Looks like this was originally implemented in https://github.com/cypress-io/cypress/pull/23916 and tweaked in https://github.com/cypress-io/cypress/pull/24063. Need to investigate why this stopped working