Open YordanIliev2002 opened 7 months ago
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
The behaivor is still occurring on Cypress 13.15.1
Current behavior
Problem
We have two types of component tests, and we want to run them separately, while using the same
cypress.config.ts
. Ideally, one such run would look like:However, such runs don't match any specs. (however, files like those exist)
Workaround
Specifying the
specPattern
via the JSON--config
works.Assumption about what happens
We have used the "problematic" approach for splitting e2e tests. The problem happens only for component tests. My suspicion is that
--config specPattern=['**/*.type-1.tsx']
overrides the propertye2e.specPattern
instead ofcomponent.specPattern
, even when--component
is used. And then the files get excluded, because of cypress' logic:Desired behavior
I would expect that when using
--component
,--config
would override thecomponent
part ofcypress.config.ts
.Test code to reproduce
Not working
Working
Cypress Version
13.7.2
Node version
v20.12.0
Operating System
macOs 14.4.1
Debug Logs
No response
Other
No response