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

Component tests do not pickup cypress/tsconfig.json #30425

Open
kacdcode opened this issue Oct 19, 2024 · 0 comments
Open

Component tests do not pickup cypress/tsconfig.json #30425

kacdcode opened this issue Oct 19, 2024 · 0 comments

Comments

@kacdcode
Copy link

Current behavior

I'm trying to create custom tsconfig.json for my component tests but it seems changes to tsconfig.json from cypress directory do not alter the environment.
When I run cypress for e2e test changes (and errors in tsconfig.json) are visible.

Cypress was configured with @cypress/schematic, version 2.5.2.

Desired behavior

Cypress component test environment loads configuration from cypress/tsconfig.json

Test code to reproduce

https://github.com/kacdcode/cypress-clean

Repository contains fresh Angular app created with @angular/cli and unmodified Cypress config created with @cypress/schematic.
Only modification is broken entry in cypress/tsconfig.json.

Run npx ng run cypress-clean:cypress-run to encounter expected error, which means e2e tests pick up this config.
Running npx ng run cypress-clean:cypress-run --component will not result in error which would indicate cypress/tsconfig.json is ignored in this test type.

Cypress Version

^13.15.0

Node version

18.16.1

Operating System

Windows 10

Debug Logs

No response

Other

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant