diff --git a/script/spec-runner.js b/script/spec-runner.js index 139a3d55572f..50af2359c8e7 100755 --- a/script/spec-runner.js +++ b/script/spec-runner.js @@ -21,7 +21,7 @@ const specHashPath = path.resolve(__dirname, '../spec/.hash') let runnersToRun = null if (args.runners) { - runnersToRun = args.only.split(',') + runnersToRun = args.runners.split(',') console.log('Only running:', runnersToRun) } else { console.log('Will trigger all spec runners') diff --git a/spec-main/api-app-spec.ts b/spec-main/api-app-spec.ts index 7cbb24f1d8db..02b55ad5c213 100644 --- a/spec-main/api-app-spec.ts +++ b/spec-main/api-app-spec.ts @@ -226,7 +226,7 @@ describe('app module', () => { const [code1] = await firstExited expect(code1).to.equal(0) const data2 = (await data2Promise)[0].toString('ascii') - const secondInstanceArgsReceived = JSON.parse(data2.toString('ascii')) + const secondInstanceArgsReceived: string[] = JSON.parse(data2.toString('ascii')) const expected = process.platform === 'win32' ? [process.execPath, '--some-switch', '--allow-file-access-from-files', secondInstanceArgsReceived.find(x => x.includes('original-process-start-time')), appPath, 'some-arg'] : secondInstanceArgs