Cypress Component testing specpattern automatic e2e-pattern exclude #25126
-
Current component testing documentation states: In my case I have a pretty global pattern for my e2e tests since I'm working in a monorepo which has some performance issues with too specific glob patterns. Therefore I wanted to exclude component specPatterns via To be more precise my e2e-config is the following:
my component-config is the following:
But in component testing it won't find any tests because of the current behaviour.
Is this intended? Do I miss some setting to opt-out of this behaviour? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi! From what I can see this use case is not supported right now. I understand why this would be confusing, especially for existing code bases with lots of E2E tests. For now, the only idea I've got is appending The issue with having CT not exclude E2E specs by default is that the default glob of Any other ideas for how we could solve for your use case? |
Beta Was this translation helpful? Give feedback.
Hi!
From what I can see this use case is not supported right now. I understand why this would be confusing, especially for existing code bases with lots of E2E tests.
For now, the only idea I've got is appending
.component.cy.ts
to your CT specs. This convention is popular in some communities, like Angular.The issue with having CT not exclude E2E specs by default is that the default glob of
**/*.cy.
would capture CT and E2E specs, which is generally not what most users want.Any other ideas for how we could solve for your use case?