You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
Current behavior
I'm trying to create custom
tsconfig.json
for my component tests but it seems changes totsconfig.json
fromcypress
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 indicatecypress/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
The text was updated successfully, but these errors were encountered: