-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cypress config error after CT migration to Yarn Plug'n'Play #26865
Comments
Thanks @MikeMcC399! This will likely be related to work needed to resolve #26859. I will forward this ticket to the appropriate team. They will evaluate the priority of this ticket and consider their capacity to pick it up. Please note that this does not guarantee that this issue will be resolved. The ticket will indicate any status changes. Thanks! |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Is this issue still to be worked on? I still face issues using Yarn 4, PnP and Cypress 13.13.2 . |
Not currently |
|
Current behavior
If a working Cypress Component Testing environment is converted to use Yarn Plug'n'Play, Cypress fails to start and reports "Your config file is invalid". In this case neither CT nor E2E testing can be carried out.
The exact error depends on which framework was configured.
The previous working environment could be
npm
, Yarn Classic (version 1) or Yarn Modern (version 3 or 4) configured withnodeLinker: node-modules
. Each of these environments works with CT.Desired behavior
Cypress component testing should be compatible with Yarn Plug'n'Play.
If a project is correctly configured, then the command
yarn cypress run --component
should execute without errors.Test code to reproduce
From clone of https://github.com/MikeMcC399/component-testing-quickstart-apps (fork of https://github.com/cypress-io/component-testing-quickstart-apps)
alternatively
Cypress Version
First reported on Cypress
12.13.0
Continues to be reproducible on Cypress
13.13.0
Yarn version
4.0.24.3.1Node version
18.18.2
/20.11.1
Operating System
Ubuntu
22.04.3
(also on Windows 11)Debug Logs
debug.log
Regular log on https://github.com/MikeMcC399/component-testing-quickstart-apps/actions/runs/5903678483.
Other
Branch
yarn-berry-node
in https://github.com/MikeMcC399/component-testing-quickstart-apps demonstrates Yarn Modern (3.5.14.0.2) withnodeLinker: node-modules
configured in.yarnrc.yml
successfully running Component Testing.The other examples in the repository are also set up for testing:
cd angular/my-awesome-app yarn install yarn cypress run --component
cd svelte/my-awesome-app yarn install yarn cypress run --component
cd vue/my-awesome-app yarn install yarn cypress run --component
to access and test them.
The text was updated successfully, but these errors were encountered: