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

fix: ensure that find-process does not error out due to a bad regex #30380

Merged
merged 9 commits into from
Oct 10, 2024

Conversation

ryanthemanuel
Copy link
Collaborator

@ryanthemanuel ryanthemanuel commented Oct 9, 2024

Additional details

find-process has a bug in their code where they are doing:

data.split(/(\r\n\r\n|\r\n\n|\n\r\n)|\n\n/)

The problem with that is (from mdn) If separator is a regular expression with capturing groups, then each time separator matches, the captured groups (including any undefined results) are spliced into the output array.

We fix this by patching their project to use one capture group which will not generate any undefined results.

Steps to test

How has the user experience changed?

PR Tasks

Copy link

cypress bot commented Oct 9, 2024

cypress    Run #57600

Run Properties:  status check passed Passed #57600  •  git commit 1faf5b57b6: blank
Project cypress
Run status status check passed Passed #57600
Run duration 12m 36s
Commit git commit 1faf5b57b6: blank
Committer Ryan Manuel
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 4
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 233
UI Coverage  67.07%
  Untested elements 25  
  Tested elements 55  
Accessibility  96.17%
  Failed rules  0 critical   4 serious   1 moderate   0 minor
  Failed elements 199  

@ryanthemanuel ryanthemanuel merged commit 04c1e8c into develop Oct 10, 2024
127 of 131 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/fix/find-process branch October 10, 2024 14:15
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 24, 2024

Released in 13.15.1.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when executing cypress run on windows: TypeError: Cannot read properties of undefined (reading 'trim')
2 participants