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

When using Yarn and PNP (plug-in-play), Cypress does not detect the framework/language correctly on set up for CT #22871

Closed
elylucas opened this issue Jul 20, 2022 · 2 comments
Labels
CT Issue related to component testing type: bug

Comments

@elylucas
Copy link
Contributor

elylucas commented Jul 20, 2022

Current behavior

When creating a CRA app using yarn 3.2.1, yarn uses PNP by default. When Cypress launches and you go into setup, Cypress does not detect the framework or language properly. Presumably this is due to the fact that PNP does not use a local node_modules folder, which Cypress relies on.

Desired behavior

Cypress should configure the app normally when using yarn and pnp.

Test code to reproduce

When using yarn 3.2.1, create a new CRA project:

yarn create react-app cra-ts-test-yarnt --template typescript

Install cypress:

yarn add cypress

Launch cypress and configure CT. Notice it doesn't pick up on the framework and has you select it.

Cypress Version

10.3.1

Other

No response

@mjhenkes mjhenkes added CT Issue related to component testing type: bug and removed stage: routed to ct labels Jul 20, 2022
@lmiller1990
Copy link
Contributor

Dup/related #22747

@lmiller1990
Copy link
Contributor

Close in favor: #22871

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CT Issue related to component testing type: bug
Projects
None yet
Development

No branches or pull requests

4 participants