33 * Copyright (c) 2018, Microsoft Corporation (MIT License).
44 */
55
6+ import { UnixTerminal } from './unixTerminal' ;
67import * as assert from 'assert' ;
78import * as cp from 'child_process' ;
89import * as path from 'path' ;
@@ -11,15 +12,10 @@ import * as fs from 'fs';
1112import { constants } from 'os' ;
1213import { pollUntil } from './testUtils.test' ;
1314import { pid } from 'process' ;
14- import type { UnixTerminal as UnixTerminalType } from './unixTerminal' ;
1515
1616const FIXTURES_PATH = path . normalize ( path . join ( __dirname , '..' , 'fixtures' , 'utf8-character.txt' ) ) ;
1717
1818if ( process . platform !== 'win32' ) {
19- // Only load UnixTerminal on non-Windows platforms
20- // This prevents trying to access winpty.node that doesn't exist anymore.
21- // eslint-disable-next-line @typescript-eslint/naming-convention
22- const { UnixTerminal } = require ( './unixTerminal' ) as { UnixTerminal : typeof UnixTerminalType } ;
2319 describe ( 'UnixTerminal' , ( ) => {
2420 describe ( 'Constructor' , ( ) => {
2521 it ( 'should set a valid pts name' , ( ) => {
@@ -79,7 +75,7 @@ if (process.platform !== 'win32') {
7975 } ) ;
8076
8177 describe ( 'open' , ( ) => {
82- let term : UnixTerminalType ;
78+ let term : UnixTerminal ;
8379
8480 afterEach ( ( ) => {
8581 if ( term ) {
0 commit comments