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: Support Cypress configs with false value for e2e.supportFile and component.supportFile #684

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

THowland1
Copy link
Contributor

Cypress config can support the value of false for both the e2e.supportFile and component.supportFile settings
https://docs.cypress.io/guides/references/configuration#e2e
https://docs.cypress.io/guides/references/configuration#component

Because false is neither a string nor Array<string>, when transformed by the map in line 31, toEntryPattern tries to perform specifier.replace(/^(entry:)?/, 'entry:') which gives the error TypeError: specifier.replace is not a function

Copy link

netlify bot commented Jun 18, 2024

‼️ Deploy request for knip rejected.

Name Link
🔨 Latest commit 87c1167

@webpro
Copy link
Collaborator

webpro commented Jun 18, 2024

Great catch! Thanks @THowland1

@webpro webpro merged commit bd77bcc into webpro-nl:main Jun 18, 2024
10 of 11 checks passed
@webpro
Copy link
Collaborator

webpro commented Jun 18, 2024

🚀 This pull request is included in v5.21.2. See Release 5.21.2 for release notes.

Using Knip in a commercial project? Please consider becoming a sponsor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants