karma-runner / karma-sauce-launcher

A Karma plugin. Launch any browser on SauceLabs!
MIT License
199 stars 103 forks source link

Running examples fails to compile #255

Open jonniespratley opened 3 years ago

jonniespratley commented 3 years ago

1st issue - Is that Document was not defined when trying to compile.

tsconfig.json was resolved with the following fix:

"lib": ["es2016", "DOM"],

2nd Issue - Is that launcher.ts compiles with this error:

src/launcher/launcher.ts:90:15 - error TS2322: Type '{ filename: string; data: any; }' is not assignable to type 'string'.
90               {
91                 filename: 'log.json',
92                 data: results,
93               },

src/launcher/launcher.ts:94:15 - error TS2322: Type '{ filename: string; data: { someLog: any; }; }' is not assignable to type 'string'.
 94               {
                  ~
 95                 filename: 'old-log.json',
... 
 98                 }
 99               },