Unable to handle uncaught:exception within test #29142
Labels
stage: needs investigating
Someone from Cypress needs to look at this
stale
no activity on this issue for a long period
Current behavior
The instructions on https://docs.cypress.io/api/cypress-api/catalog-of-events#To-catch-a-single-uncaught-exception on how to catch a single uncaught exception from the app do not work.
uncaught:exception
is being given the cypress runner error and not the uncaught error from the application.Desired behavior
uncaught:exception
should be given the uncaught error from the app like the docs say.Test code to reproduce
https://github.com/steinybot/cypress-test-tiny/tree/uncaught-exception-in-test
Cypress Version
13.7.0
Node version
21.7.1
Operating System
macOS 14.2.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: