You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if there's a test failure inside the cy.origin() callback and it requires dependencies, the error code frame shows the object the callback is replaced with and not the original source code. We need to connect the extracted callback with the source code through source maps and ensure the code frame shows the original source.
It's important for debugging failures to see the original source code. It's confusing to see this artifact the source callback is replaced with instead of the callback itself.
The text was updated successfully, but these errors were encountered:
The code for this is done in cypress-io/cypress#24367, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
What would you like?
Currently, if there's a test failure inside the
cy.origin()
callback and it requires dependencies, the error code frame shows the object the callback is replaced with and not the original source code. We need to connect the extracted callback with the source code through source maps and ensure the code frame shows the original source.The following code:
yields the following error/code frame:
Why is this needed?
It's important for debugging failures to see the original source code. It's confusing to see this artifact the source callback is replaced with instead of the callback itself.
The text was updated successfully, but these errors were encountered: