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
{{ message }}
Repository navigation
Failure when using a tsconfig file with 'extends' #364
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.
Activity
pranavj1001 commentedon Jun 29, 2022
So the issue here could be that the base config file might be residing at a different location wrt your
cypress.jsonfile. Here, you can use thehome_directoryconfig to solve this problem. You can find more info about it here -https://www.browserstack.com/docs/automate/cypress/home-directoryrao123dk commentedon Sep 6, 2022
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.
pranavj1001 commentedon Oct 14, 2022
BrowserStack supports Cypress 10. Here is the docs link -> https://www.browserstack.com/docs/automate/cypress Let us know if
home_directorydoesn't solve the issue.