Skip to content

Failure when using a tsconfig file with 'extends' #364

Open
@gisheri

Description

@gisheri

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"

Here is a stack overflow question regarding this: https://stackoverflow.com/questions/72128417/run-typescript-cypress-e2e-tests-over-browserstack#comment128082231_72128417

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions