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: do not ignore node_modules if it is specified by an user #23616 #28456

Conversation

qwazimoda
Copy link
Contributor

@qwazimoda qwazimoda commented Dec 4, 2023

The suggested change is to not ignore node_modules if the project's folder contains it or node_modules is specified in the path to spec files.

Additional details

If a project path (cwd) or a spec path (glob) contains node_modules it will not be included in the ignoring paths (ignoreGlob).

Steps to test

The related issues contain steps to reproduce. But I haven't built the fixed version locally to verify the changed behavior.

How has the user experience changed?

A few extra code checks are added. For most users, it shouldn't be detectable. The blocked users get the ability to run Cypress from the node_modules folder like they were able to do before Cypress 10.
Some future users could potentially experience some slowness (?) or see unexpected specs from Cypress if they improperly configure their environment.

PR Tasks

@CLAassistant
Copy link

CLAassistant commented Dec 4, 2023

CLA assistant check
All committers have signed the CLA.

@cypress-app-bot
Copy link
Collaborator

@cchaglund
Copy link

Eagerly awaiting this fix!

Copy link
Contributor

@cacieprins cacieprins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting this! Other than some flake in the CI, it looks like it's passing. Just left one comment about expanding the test coverage.

@qwazimoda qwazimoda requested a review from cacieprins December 16, 2023 18:50
Copy link
Contributor

@jordanpowell88 jordanpowell88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the PR @qwazimoda! We will need to wait to merge as this will go in our next release (13.6.3 or 13.7.0)

@qwazimoda
Copy link
Contributor Author

LGTM! Thanks for the PR @qwazimoda! We will need to wait to merge as this will go in our next release (13.6.3 or 13.7.0)

Thanks for the review.
I haven't worked with GitHub before, and I would appreciate it if you could clarify a few moments.
After the current release ('13.6.2'), if/when it happens, there will be a merge conflict in the changelog file. Would the conflict resolution reset approvals?
Do I need to track the progress with the current release to update this PR, or would someone from the maintainers take care of it since it has two approvals?

@jennifer-shehane
Copy link
Member

@qwazimoda Fixed the changelog for you

@qwazimoda
Copy link
Contributor Author

@qwazimoda Fixed the changelog for you

Thank you a lot!

@jennifer-shehane jennifer-shehane merged commit ef3f04f into cypress-io:develop Dec 28, 2023
65 of 67 checks passed
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 17, 2024

Released in 13.6.3.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jan 17, 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.

Specifying supportFile in config doesn't work with node_modules in path
7 participants