question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
textbookcommented, Jun 5, 2022

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

0reactions
cypress-bot[bot]commented, Jun 10, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jenkins giving "The cypress npm package is installed, but the ...
js" in Bulid configuration. and i am getting this error. C:\Users\akash\CypressAutomation>./node_modules/.bin/cypress run --spec "cypress\ ...
Read more >
Cypress e2e Testing in the Jenkins Pipeline - Ronnie Schaniel
In this post we go a step further and cover how to use Cypress for automated e2e testing in your CI/CD workflow. Jenkins...
Read more >
cypress-io/cypress - Gitter
Hi All, Automation getting stuck in Jenkins. What might be the issue?.individually spec files runs.but sometimes cypress get stuck in jenkins. sometime it...
Read more >
Part 32 - Cypress Integration with CI Server Jenkins (Freestyle ...
In this video I 've shown how to Automate Cypress Tests Execution Using Jenkins (CI Server) 1. Run Local Cypress Project 2.
Read more >
EASY Cypress Jenkins PIPELINE Example | Cypress Tutorial
Create a JENKINS FILE (Declarative Pipeline) to Run CYPRESS in Jenkins PIPELINE as CI/CD environment. ⏰Timestamps: 00:00​​​​ - Video ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found