From 34e1ee2bf60a540e3721fa7a64346ccabead7dae Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Sat, 19 Aug 2017 13:20:32 -0700 Subject: [PATCH] Fix typings test on Windows --- src/Terminal.integration.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Terminal.integration.ts b/src/Terminal.integration.ts index 7e4ed870..124e89cb 100644 --- a/src/Terminal.integration.ts +++ b/src/Terminal.integration.ts @@ -149,7 +149,10 @@ if (os.platform() !== 'win32') { describe('typings', () => { it('should throw no compile errors', function (): void { this.timeout(20000); - const tsc = path.join(__dirname, '..', 'node_modules', '.bin', 'tsc'); + let tsc = path.join(__dirname, '..', 'node_modules', '.bin', 'tsc'); + if (process.platform === 'win32') { + tsc += '.cmd'; + } const fixtureDir = path.join(__dirname, '..', 'fixtures', 'typings-test'); let result = cp.spawnSync(tsc, { cwd: fixtureDir }); assert.equal(result.status, 0, `build did not succeed:\nstdout: ${result.stdout.toString()}\nstderr: ${result.stderr.toString()}\n`);