1 | import {assert} from 'chai';
|
2 | import spawn from 'cross-spawn'
|
3 |
|
4 | describe('Typings', () => {
|
5 | it('compiles successfully', () => {
|
6 | const typescriptCompilation = spawn.sync('./node_modules/.bin/tsc', [
|
7 | '-p',
|
8 | './tsconfig.json',
|
9 | ]);
|
10 | const output = typescriptCompilation.stdout.toString();
|
11 |
|
12 | assert.equal(output, '');
|
13 | assert.equal(typescriptCompilation.status, 0);
|
14 | }).timeout(10000);
|
15 | });
|