Skip to content

Cypress Component testing specpattern automatic e2e-pattern exclude #25126

Discussion options

You must be logged in to vote

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?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@lmiller1990
Comment options

@Shaegi
Comment options

@lmiller1990
Comment options

@Shaegi
Comment options

@lmiller1990
Comment options

Answer selected by Shaegi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants