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.

does not find cypress.config.js when using Cypress v10

See original GitHub issue

When upgrading to Cypress v10 I saw this error message in CI:

You are attempting to use Cypress with an older config file: cypress.json When you upgraded to Cypress v10.0 the config file was updated and moved to a new location: cypress.config.js You may need to update any CLI scripts to ensure that they are referring the new version. This would typically look something like: “cypress open --config-file=cypress.config.js” https://on.cypress.io/migration-guide

After I added config-file: cypress.config.js the integration works.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:9

github_iconTop GitHub Comments

40reactions
developer-ocanseycommented, Jun 14, 2022

@ChillyBots update cypress-io/github-action@v2 to v4.1.0

3reactions
developer-ocanseycommented, Jul 6, 2022

update cypress-io/github-action@v2 to v4.1.0

silly question, how do I update this?

Not sure how your cypress tests are set up for GitHub actions but Ideally from your project root .github > workflows > [cypress_test].yaml

You should have this line in jobs > steps

uses: cypress-io/github-action@v[4]

Here is an example of what the file looks like: https://github.com/cypress-io/github-action#basic

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration
This guide is for Cypress 10 and the new JavaScript configuration file format. If you are on an older version of Cypress that...
Read more >
Move cypress folder ts config
Found : Move cypress folder from the root of the project but it uses json config. I do not want to create a...
Read more >
Specify Cypress configuration files
You can use the cypress_config_file key in run_settings option to specify the Cypress configuration file that you want to use. ... For example:...
Read more >
Cypress v10 Environment Variables
We see only the environment variables from the e2e block. ... Here is what we could do in our cypress.config.js file to use...
Read more >
Cypress v10 - What's new?
Component Test is now part of Cypress v10 as Beta; Change to configuration ... Replace this configuration file with a cypress.config.js ...
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