[macOS] Move global npm packages to toolset macOS (#4047)

This commit is contained in:
Dmitry Shibanov
2021-09-09 18:53:11 +03:00
committed by GitHub
parent de98c474f3
commit 39051ea4cf
6 changed files with 40 additions and 32 deletions

View File

@@ -51,14 +51,12 @@ Describe "nvm" {
}
}
Describe "AppCenterCLI" {
It "App Center CLI" {
"appcenter --version" | Should -ReturnZeroExitCode
Describe "Global NPM Packages" {
$globalNpmPackages = Get-ToolsetValue "npm.global_packages"
$globalNpmPackagesWithTests = $globalNpmPackages | Where-Object { $_.test } | ForEach-Object { @{ Name = $_.name; Test = $_.test } }
It "<Name>" -TestCases $globalNpmPackagesWithTests {
$Test | Should -ReturnZeroExitCode
}
}
Describe "Newman" -Skip:($os.IsHighSierra -or $os.IsMojave) {
It "Newman" {
"newman --version" | Should -ReturnZeroExitCode
}
}