Cypress10 in jenkins is giving Your project does not contain a default supportFile. We expect a file matching cypress\support\e2e.{js,jsx,ts,tsx} to exist.
See original GitHub issueCurrent behavior
Ran through the migration from 9.7.0 to 10.0.1 with the wizard. Running the tests locally in no problem (via cypress open or cypres run)
When i kick off the repository which has the tests in Jenkins (which uses cypress run), i keep getting the error Your project does not contain a default supportFile. We expect a file matching cypress\support\e2e.{js,jsx,ts,tsx} to exist.
The file is there…
When i hardcode the path in cypress.config.ts
, i get Your supportFile is missing or invalid: cypress\support\e2e.js The supportFile must be a .js, .ts, .coffee file or be supported by your preprocessor plugin (if configured).
The only thing which is in the file, is import './commands';
The command used in jenkins cypress run --config baseUrl=http://test:4200/ --env userName=xxx,passWord=yyy
Desired behavior
Cypress running in jenkins as 9.7.0 did
Test code to reproduce
migrate to 10.0.1 and run in jenkins
Cypress Version
10.0.1
Other
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:16 (7 by maintainers)
Top GitHub Comments
@mschile oops yes that was it exactly, thank you!
Released in
10.1.0
.This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v10.1.0, please open a new issue.