Skip to content

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

@Abcmsaj

Description

@Abcmsaj

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

Metadata

Metadata

Assignees

Labels

type: regressionA bug that didn't appear until a specific Cy version release

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions