Testy / TestyTs

✔️ Modern TypeScript testing framework.
http://testy.github.io
ISC License
123 stars 8 forks source link

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

Open Stargator opened 2 years ago

Stargator commented 2 years ago

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 commented 2 years ago

The problem also exists in version 2.0.0-beta.7