Skip to content

Commit b6b5adf

Browse files
committed
chore: experiment with 16.16.0
1 parent 45339e5 commit b6b5adf

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

scripts/choco-install.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ if ( $null -eq $env:ChocolateyInstall ) {
2323
New-Item -Path "${PSScriptRoot}\..\tmp\chocolatey" -ItemType "directory" -ErrorAction:SilentlyContinue
2424
choco source add --name="cache" --source="${PSScriptRoot}\..\tmp\chocolatey" --priority=1
2525

26-
# Install nodejs v16.15.1 (will use cache if exists)
26+
# Install nodejs v16.16.0 (will use cache if exists)
2727
$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
2929
# 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) ) {
3131
Save-ChocoPackage -PackageName $nodejs
3232
}

tests/bin/typescript-demo-lib.test.ts

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ import path from 'path';
44
import { mockProcessStdout } from 'jest-mock-process';
55
import main from '@/bin/typescript-demo-lib';
66

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+
715
const uuidRegex = new RegExp(
816
'[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}',
917
);

tests/setup.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
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');
57

68
console.log(process.stdout.isTTY);
79
console.log(process.stderr.isTTY);

tests/setupAfterEnv.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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+
19
// Default timeout per test
210
// some tests may take longer in which case you should specify the timeout
311
// explicitly for each test by using the third parameter of test function

0 commit comments

Comments
 (0)