Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught error does not display stack trace #6964

Closed
chrisbreiding opened this issue Apr 8, 2020 · 2 comments · Fixed by #6965 or Flygsand/site#83
Closed

Uncaught error does not display stack trace #6964

chrisbreiding opened this issue Apr 8, 2020 · 2 comments · Fixed by #6965 or Flygsand/site#83
Assignees

Comments

@chrisbreiding
Copy link
Contributor

Current behavior:

If an uncaught error occurs, in either app code or test code, Cypress displays the error message, but not its stack, which could be useful for debugging.

Desired behavior:

Cypress should always display the stack for uncaught errors.

Test code to reproduce

In your spec file:

setTimeout(() => {
  foo.bar()
})

// give the test time to run, so the run doesn't end before the error is caught
it('waits', () => {
  cy.wait(9999)
})

Versions

Cypress: 4.3.0

@chrisbreiding chrisbreiding self-assigned this Apr 8, 2020
@cypress-bot cypress-bot bot added stage: work in progress There is an open PR for this issue [WIP] stage: needs review The PR code is done & tested, needs review and removed stage: work in progress There is an open PR for this issue [WIP] labels Apr 8, 2020
@cypress-bot cypress-bot bot added stage: pending release There is a closed PR for this issue and removed stage: needs review The PR code is done & tested, needs review labels Apr 10, 2020
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 10, 2020

The code for this is done in cypress-io/cypress#6965, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 13, 2020

Released in 4.4.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v4.4.0, please open a new issue.

@cypress-bot cypress-bot bot removed the stage: pending release There is a closed PR for this issue label Apr 13, 2020
@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants