File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -4,22 +4,6 @@ import path from 'path';
4
4
import { mockProcessStdout } from 'jest-mock-process' ;
5
5
import main from '@/bin/typescript-demo-lib' ;
6
6
7
- if ( process . stdout . isTTY ) {
8
- // @ts -ignore
9
- process . stdout . _handle . setBlocking ( true ) ;
10
- } else if ( os . platform ( ) === 'win32' && ! process . stdout . isTTY ) {
11
- // @ts -ignore
12
- process . stdout . _handle . setBlocking ( false ) ;
13
- }
14
-
15
- if ( process . stderr . isTTY ) {
16
- // @ts -ignore
17
- process . stderr . _handle . setBlocking ( true ) ;
18
- } else if ( os . platform ( ) === 'win32' && ! process . stderr . isTTY ) {
19
- // @ts -ignore
20
- process . stderr . _handle . setBlocking ( false ) ;
21
- }
22
-
23
7
const uuidRegex = new RegExp (
24
8
'[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}' ,
25
9
) ;
Original file line number Diff line number Diff line change
1
+ // @ts -ignore windows
2
+ process . stdout . _handle . setBlocking ( true ) ;
3
+ // @ts -ignore windows
4
+ process . stderr . _handle . setBlocking ( true ) ;
You can’t perform that action at this time.
0 commit comments