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

Testy uses tsconfig.json even when an alternative config is specified in testy.json #101

Open
Stargator opened this issue Apr 23, 2022 · 1 comment

Comments

@Stargator
Copy link

Stargator commented Apr 23, 2022

I have a testy.json configured as:

  "tsconfig": "./tsconfig.spec.json",
  "include":[
    "test/**/*.spec.ts"
  ]

Testyts version 1.5.0

When I run testyts, there are errors:

An error occured while executing the following command: /usr/local/Cellar/node@14/14.19.1/bin/node /usr/local/bin/testyts. Error: "⨯ Unable to compile TypeScript:
error TS5023: Unknown compiler option 'noUncheckedIndexedAccess'.
error TS5023: Unknown compiler option 'noImplicitOverride'.
error TS5023: Unknown compiler option 'noPropertyAccessFromIndexSignature'.
"

But these config parameters are removed in tsconfig.spec.json, they only exist in the tsconfig.json. If I rename tsconfig.json to tsconfig.app.json, then the tests run as expected.

Testy seems to be still using tsconfig.json if it exists regardless of the config parameters.

@Stargator
Copy link
Author

The problem also exists in version 2.0.0-beta.7

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