cypress: 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.

Current 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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 16 (9 by maintainers)

Most upvoted comments

@mschile oops yes that was it exactly, thank you!