-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Empty returned specPattern
doesn't yield error if specPattern
was originally an array
#27103
Comments
For reference, this might happen in a plugin trying to filter specs. |
Hi @badeball , thanks for the submission and the reproduction! I will forward this ticket to the appropriate team. They will soon evaluate the priority of this ticket and consider their capacity to pick it up. Please note that this does not guarantee that this issue will be resolved. The ticket will indicate status changes during evaluation, so we ask that you please refrain from asking for updates. Thanks! For anyone considering picking this ticket up I believe the offending logic is in this area, and we have already dealt with a similar issue in the past based on the comments immediately below. The |
Hello, can I try to work on this issue? Also, I am new to making contributions, so can I also get some help? And if I can work on it, I would just like to ask, how exactly am I supposed to check the output in the reproducible code written by @badeball? As in, I would like to see the behaviour difference being mentioned? (I have cloned the repo but am now confused) |
Hey @NiharPhansalkar , thanks for offering to help! A good place to start is to review our Contributing Guide which outlines the process for fixing, testing, and committing a change to Cypress. For this particular issue, you can view the project's effective configuration by:
In the reproduction case, |
@mike-plummer Thank you Mike! Appreciate the help! I am having some build issues with cypress, the moment it gets fixed, I will get to work on this, and let you know if I get stuck anywhere else! |
@mike-plummer Hello, so for the |
Current behavior
Setting
specPattern
to an empty array[]
withinsetupNodeEvents() { .. }
makes Cypress correctly yield ano spec files
error. However, ifspecPattern
was originally configured as an array, this is no longer the case.Desired behavior
For Cypress to yield the above-mentioned error no matter if
specPattern
was originally specified as a string or an array of strings.Test code to reproduce
https://github.com/badeball/reproducible-issues/tree/master/cypress/empty-spec-pattern
Cypress Version
12.15.0
Node version
v18.8.0
Operating System
Arch Linux
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: