Update Node.Tests.ps1

This commit is contained in:
gowridurgad 2024-06-26 15:41:16 +05:30 committed by GitHub
parent 47252c228f
commit 921e8d9f35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,6 +34,11 @@ Describe "Node.js" {
$nodePath.startsWith($expectedPath) | Should -BeTrue -Because "'$nodePath' is not started with '$expectedPath'" $nodePath.startsWith($expectedPath) | Should -BeTrue -Because "'$nodePath' is not started with '$expectedPath'"
} }
BeforeAll {
Write-Host "Architecture: $($env:PROCESSOR_ARCHITECTURE)"
Write-Host "OS: $($env:OS)"
}
It "cached version is used without downloading" { It "cached version is used without downloading" {
# Check the architecture and OS before running the test # Check the architecture and OS before running the test
if (($env:PROCESSOR_ARCHITECTURE -ne 'ARM64') -or (($env:OS -ne 'Windows_NT') -and ($env:OS -ne 'Linux'))) { if (($env:PROCESSOR_ARCHITECTURE -ne 'ARM64') -or (($env:OS -ne 'Windows_NT') -and ($env:OS -ne 'Linux'))) {