Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.5.0 - "Your supportFile is missing or invalid" even when hardcoded in the config #23361

Closed
Abcmsaj opened this issue Aug 16, 2022 · 7 comments · Fixed by #23368
Closed

10.5.0 - "Your supportFile is missing or invalid" even when hardcoded in the config #23361

Abcmsaj opened this issue Aug 16, 2022 · 7 comments · Fixed by #23368
Assignees
Labels
type: regression A bug that didn't appear until a specific Cy version release

Comments

@Abcmsaj
Copy link

Abcmsaj commented Aug 16, 2022

Current behavior

When we upgrade to Cypress 10.5.0 and run our E2E test suite through our pipelines, we get an error on each of docker containers:

cypress_1 | Your project does not contain a default supportFile. We expect a file matching cypress/support/e2e.{js,jsx,ts,tsx} to exist.
cypress_1 |
cypress_1 | If a support file is not necessary for your project, set supportFile to false.
cypress_1 |
cypress_1 | https://on.cypress.io/support-file-missing-or-invalid

Even when we hardcode the location of the support file into the config, we get a similar error:

cypress_2 | Your supportFile is missing or invalid: cypress/support/e2e.js
cypress_2 |
cypress_2 | The supportFile must be a .js, .ts, .coffee file or be supported by your preprocessor plugin (if configured).
cypress_2 |
cypress_2 | Fix your support file, or set supportFile to false if a support file is not necessary for your project.
cypress_2 |
cypress_2 | If you have just renamed the extension of your supportFile, restart Cypress.
cypress_2 |
cypress_2 | https://on.cypress.io/support-file-missing-or-invalid

When we downgrade to Cypress 10.4.0 - works again

Desired behavior

Tests should just run as they did for 10.4.0

Test code to reproduce

Not sure I can provide code - we didn't change anything. Initially, our configs did NOT have the supportFile location set

This is how our directory is structured - which is the default way, I believe:

Screenshot 2022-08-16 at 10 51 49

Cypress Version

10.5.0

Node version

16.16.0

Operating System

Docker - running the Cypress included image for 10.5.0

Debug Logs

No response

Other

No response

@esetnik
Copy link
Contributor

esetnik commented Aug 16, 2022

@Abcmsaj I have the same issue. Downgrading to 10.4.0 for now.

@esetnik
Copy link
Contributor

esetnik commented Aug 16, 2022

Possibly related to #22903

@emilyrohrbough
Copy link
Member

emilyrohrbough commented Aug 16, 2022

@esetnik / @Abcmsaj Is your root directory named e2e? We discovered a regression related to this change that we are working on a fix for.

@esetnik
Copy link
Contributor

esetnik commented Aug 16, 2022

@esetnik / @Abcmsaj Is your root directory named e2e? We discovered a regression related to this change that we are working on a fix for.

yes it is. Thanks, i'll wait for an update.

@emilyrohrbough emilyrohrbough added the type: regression A bug that didn't appear until a specific Cy version release label Aug 16, 2022
@tbiethman tbiethman self-assigned this Aug 16, 2022
@cypress-bot cypress-bot bot added stage: needs review The PR code is done & tested, needs review and removed stage: routed to e2e-core labels Aug 16, 2022
@Abcmsaj
Copy link
Author

Abcmsaj commented Aug 16, 2022

@esetnik / @Abcmsaj Is your root directory named e2e? We discovered a regression related to this change that we are working on a fix for.

Yeah it is, thanks Emily

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 16, 2022

The code for this is done in cypress-io/cypress#23368, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot cypress-bot bot removed the stage: needs review The PR code is done & tested, needs review label Aug 16, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Aug 16, 2022

Released in 10.6.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v10.6.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: regression A bug that didn't appear until a specific Cy version release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants