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

Can't add Cypress Component Testing to new Angular project #22117

Closed
1 of 4 tasks
andrewalderson opened this issue Mar 2, 2024 · 1 comment · Fixed by #22165
Closed
1 of 4 tasks

Can't add Cypress Component Testing to new Angular project #22117

andrewalderson opened this issue Mar 2, 2024 · 1 comment · Fixed by #22165
Assignees
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx type: bug

Comments

@andrewalderson
Copy link

Current Behavior

Trying to add Cypress Component Testing configuration to a new Angular project fails because it can't find an existing cypress.config.ts file.

 *  Executing task: npx nx generate @nx/angular:cypress-component-configuration --project=app --buildTarget=app:build --no-interactive --dry-run 


 NX  Generating @nx/angular:cypress-component-configuration


 NX   Could not find a cypress config file in ..

Expected Behavior

Well, I would like it to work.

GitHub Repo

https://github.com/andrewalderson/angular-cypress-component-testing-executer-bug

Steps to Reproduce

  1. Create a new Nx workspace with an Angular project (or check out the linked repo)
  2. Run command to add Cypress Component Testing configuration

Nx Report

Node   : 20.11.0
OS     : linux-x64
npm    : 10.2.4

nx                 : 18.0.6
@nx/js             : 18.0.6
@nx/jest           : 18.0.6
@nx/linter         : 18.0.6
@nx/eslint         : 18.0.6
@nx/workspace      : 18.0.6
@nx/angular        : 18.0.6
@nx/cypress        : 18.0.6
@nx/devkit         : 18.0.6
@nx/eslint-plugin  : 18.0.6
@nrwl/tao          : 18.0.6
@nx/web            : 18.0.6
@nx/webpack        : 18.0.6
typescript         : 5.3.3

Failure Logs

No response

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

I don't think it matters but I am running this in a devcontainer and the container is included in the linked repo

@AgentEnder AgentEnder added the scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx label Mar 4, 2024
@leosvelperez leosvelperez self-assigned this Mar 5, 2024
Copy link

github-actions bot commented Apr 5, 2024

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: testing tools Issues related to Cypress / Jest / Playwright / Vitest support in Nx type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants