TestyTs icon indicating copy to clipboard operation
TestyTs copied to clipboard

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

Open Stargator opened this issue 2 years ago • 1 comments

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 avatar Apr 23 '22 15:04 Stargator

The problem also exists in version 2.0.0-beta.7

Stargator avatar Apr 30 '22 13:04 Stargator