UNPKG

465 BJavaScriptView Raw
1import {assert} from 'chai';
2import spawn from 'cross-spawn'
3
4describe('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});