mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix typings test on Windows
This commit is contained in:
@@ -149,7 +149,10 @@ if (os.platform() !== 'win32') {
|
||||
describe('typings', () => {
|
||||
it('should throw no compile errors', function (): void {
|
||||
this.timeout(20000);
|
||||
const tsc = path.join(__dirname, '..', 'node_modules', '.bin', 'tsc');
|
||||
let tsc = path.join(__dirname, '..', 'node_modules', '.bin', 'tsc');
|
||||
if (process.platform === 'win32') {
|
||||
tsc += '.cmd';
|
||||
}
|
||||
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`);
|
||||
|
||||
Reference in New Issue
Block a user