Skip to content

Commit

Permalink
Fix typings test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Aug 19, 2017
1 parent 5ab047e commit 34e1ee2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Terminal.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down

0 comments on commit 34e1ee2

Please sign in to comment.