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
The browserstack cli fails to prepare test files if the tsconfig uses 'extends'. If I copy the exact tsconfig that was extended into my compilerOptions rather than using 'extends', then it succeeds. This can be problematic in cases like mine where many services extend a base config.
Repro steps:
create any simple POC with cypress tests, but attempt to 'extend' another tsconfig file in your tsconfig.
Run the tests with the browserstack CLI
Notice the failure "Error: error while parsing tsconfig.json"
So the issue here could be that the base config file might be residing at a different location wrt your cypress.json file. Here, you can use the home_directory config to solve this problem. You can find more info about it here -https://www.browserstack.com/docs/automate/cypress/home-directory
This question was asked by me on stackoverflow. I was facing same issue but for that quick resolution I removed extends(I know its not ideal solution). But in cypress 10 cypress.json is no longer, so we need support of cypress10.
The browserstack cli fails to prepare test files if the tsconfig uses 'extends'. If I copy the exact tsconfig that was extended into my compilerOptions rather than using 'extends', then it succeeds. This can be problematic in cases like mine where many services extend a base config.
Repro steps:
Here is a stack overflow question regarding this: https://stackoverflow.com/questions/72128417/run-typescript-cypress-e2e-tests-over-browserstack#comment128082231_72128417
The text was updated successfully, but these errors were encountered: