monounity / karma-typescript

Simplifying running unit tests with coverage for Typescript projects.
314 stars 109 forks source link

karma-typescript cannot exclude node_modules #446

Closed guoyunhe closed 3 years ago

guoyunhe commented 3 years ago

I have configured tsconfig.json to exclude node_modules folder, but karma-typescript still throw errors in it:

07 05 2021 15:55:41.924:ERROR [compiler.karma-typescript]: node_modules/@alife/bc-ot-fetch/src/request.tsx(330,9): error TS2322: Type 'RequestOption<any> | undefined' is not assignable to type 'RequestOption<any>'.
  Type 'undefined' is not assignable to type 'RequestOption<any>'.

07 05 2021 15:55:41.924:ERROR [compiler.karma-typescript]: node_modules/@alife/bc-ot-fetch/src/telemetry.ts(26,33): error TS2531: Object is possibly 'null'.
guoyunhe commented 3 years ago

never mind, it is the package itself that only provides .ts and .tsx... I have to contact the author to correct it...