Load specs from node_modules in cypress v10 #23138
Replies: 1 comment
-
Duplicate issue: #23616 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm upgrading Cypress in a quite large corporate project. Currently stuck on importing specs using specPattern. Cypress is run in different repo and package than the specs are, so we are publishing the specs as a part of the package and they are available in node_modules.
When opening cypress, current working dir seems to be the root of the repo. So to access node_modules one could use ./node_modules or just node_modules. But when using
./node_modules/.../e2e/*.*
as specPattern, Cypress fails to discover the specs. They are, however, available if I create symlink at the same level, next to node_modules. So to me, it seems like node_modules is excluded or unavailable to cypress.How to make cypress discover the specs given the path to node_modules project?
Beta Was this translation helpful? Give feedback.
All reactions