File tree 4 files changed +25
-7
lines changed
4 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ if ( $null -eq $env:ChocolateyInstall ) {
23
23
New-Item - Path " ${PSScriptRoot} \..\tmp\chocolatey" - ItemType " directory" - ErrorAction:SilentlyContinue
24
24
choco source add -- name= " cache" -- source= " ${PSScriptRoot} \..\tmp\chocolatey" -- priority= 1
25
25
26
- # Install nodejs v16.15.1 (will use cache if exists)
26
+ # Install nodejs v16.16.0 (will use cache if exists)
27
27
$nodejs = " nodejs.install"
28
- choco install " $nodejs " -- version= " 16.15.1 " -- require- checksums - y
28
+ choco install " $nodejs " -- version= " 16.16.0 " -- require- checksums - y
29
29
# Internalise nodejs to cache if doesn't exist
30
- if ( -not (Test-Path - Path " ${PSScriptRoot} \..\tmp\chocolatey\$nodejs \$nodejs .16.15.1 .nupkg" - PathType Leaf) ) {
30
+ if ( -not (Test-Path - Path " ${PSScriptRoot} \..\tmp\chocolatey\$nodejs \$nodejs .16.16.0 .nupkg" - PathType Leaf) ) {
31
31
Save-ChocoPackage - PackageName $nodejs
32
32
}
Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ import path from 'path';
4
4
import { mockProcessStdout } from 'jest-mock-process' ;
5
5
import main from '@/bin/typescript-demo-lib' ;
6
6
7
+ console . log ( 'TEST MODULE' ) ;
8
+ console . log ( process . stdout . isTTY ) ;
9
+ console . log ( process . stderr . isTTY ) ;
10
+ // @ts -ignore windows
11
+ console . log ( process . stdout . _handle ) ;
12
+ // @ts -ignore windows
13
+ console . log ( process . stderr . _handle ) ;
14
+
7
15
const uuidRegex = new RegExp (
8
16
'[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}' ,
9
17
) ;
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 ) ;
1
+ // // @ts -ignore windows
2
+ // process.stdout._handle.setBlocking(true);
3
+ // // @ts -ignore windows
4
+ // process.stderr._handle.setBlocking(true);
5
+
6
+ console . log ( 'SETUP' ) ;
5
7
6
8
console . log ( process . stdout . isTTY ) ;
7
9
console . log ( process . stderr . isTTY ) ;
Original file line number Diff line number Diff line change
1
+ console . log ( 'SETUP AFTER ENV' ) ;
2
+ console . log ( process . stdout . isTTY ) ;
3
+ console . log ( process . stderr . isTTY ) ;
4
+ // @ts -ignore windows
5
+ console . log ( process . stdout . _handle ) ;
6
+ // @ts -ignore windows
7
+ console . log ( process . stderr . _handle ) ;
8
+
1
9
// Default timeout per test
2
10
// some tests may take longer in which case you should specify the timeout
3
11
// explicitly for each test by using the third parameter of test function
You can’t perform that action at this time.
0 commit comments