fix: (studio) remove itGrep lines from stack trace when determining invocationDetails
#32699
+38
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Additional details
This PR fixes the invocation details when
ithas been re-written asitGrepwhich happens in the@cypress/grepand@bahmutov/cy-grepplugins. This allows us to determine the correct invocation details for the test.Steps to test
I tested this with the
@bahmutov/cy-greppackage. Install the package and register it in your support file in accordance with the documentation. Open Cypress Studio by clicking the "edit in studio" button next to a test. Verify that the test content is loaded correctly and you can edit and save the test as expected.How has the user experience changed?
Users of
@bahmutov/cy-greppackage can now use studio as intendedPR Tasks
cypress-documentation?type definitions?Note
Removes
itGrepframes from error stacks to correctly resolve invocation details, with a unit test covering grep-modified stacks.stackWithGrepLinesRemovedto filter lines containingitGrep.getInvocationDetailsto dropitGrepframes after trimming to spec frames.getSourcePosition.Written by Cursor Bugbot for commit b6bc0f5. This will update automatically on new commits. Configure here.