Clean up
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"files": [
|
||||
"typing-tests.ts"
|
||||
"typings-test.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
|
||||
@@ -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'));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user