This commit is contained in:
Daniel Imms
2017-08-19 10:22:46 -07:00
parent 6e2ca0af12
commit 380f950d4d
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"files": [
"typing-tests.ts"
"typings-test.ts"
],
"compilerOptions": {
"module": "commonjs",
+6 -4
View File
@@ -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'));
});
});