Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Aug 19, 2017
1 parent 6e2ca0a commit 380f950
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fixtures/typings-test/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files": [
"typing-tests.ts"
"typings-test.ts"
],
"compilerOptions": {
"module": "commonjs",
Expand Down
File renamed without changes.
10 changes: 6 additions & 4 deletions src/Terminal.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,13 @@ if (os.platform() !== 'win32') {
}

describe('typings', () => {
it('should throw no compile errors', function () {
it('should throw no compile errors', function (): void {
this.timeout(20000);
let result = cp.spawnSync(path.join(__dirname, '..', 'node_modules', '.bin', 'tsc'), {
cwd: path.join(__dirname, '..', 'fixtures', 'typings-test')
});
const tsc = path.join(__dirname, '..', 'node_modules', '.bin', 'tsc');
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`);
// Clean up
fs.unlinkSync(path.join(fixtureDir, 'typings-test.js'));
});
});

0 comments on commit 380f950

Please sign in to comment.