-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
nx generator for cypress component tests doesn't generate correct tsconfigs #19569
Comments
Also seeing this still even after #12965 |
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
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. |
Current Behavior
Running
generates config and folders for cypress component testing.

However,
cy
is not recognized at allI spent quite a lot of time trying to figure out what's wrong, but I failed.
including
commands.ts
file in tsconfig.ts, didn't help.I could reproduce it even on a fresh project.
Expected Behavior
SHould be able to use cypress component testing without any typescript problems
GitHub Repo
I didn't do anything to tsconfig files - just what was generated by nx
https://github.com/tar-aldev/nrwl-nx-cypress-component-testing-issues
Steps to Reproduce
cy.mount()
Result: it will show the message
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
I see this part added under
/app/tsconfig.json
As soon as I remove this, it seems to start working just fine.
But then I start getting a lot of troubles with jest tests too. Cypress assertions conflict with jest ones.
If I add this to
exclude
oftsconfig.json
it helps with assertion ts errors, but then it starts complaining about imports from
@org/lib-name
which are other libs created with nx.So just to be sure. the structure is like this
tsconfig.json file looks like this
tsconfig.spec.json
cypress/tsconfig.json
The text was updated successfully, but these errors were encountered: