mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
* improve InitializeVM script * Update windows2019.json * remove configs * resolve comments * resolve comments; fix order * fix templates * move Node.js packages to toolset * dotnet warmup and merge docker scripts * Update Node.Tests.ps1 * Update Install-Docker.ps1 * fix node.js tests * fix npm package installation * Update Install-NodeLts.ps1 * fix tests * fix test
19 lines
615 B
PowerShell
19 lines
615 B
PowerShell
Describe "Node.JS" {
|
|
Context "Basic modules"{
|
|
It "<ToolName> " -TestCases @(
|
|
@{ ToolName = "node" }
|
|
@{ ToolName = "npm" }
|
|
) {
|
|
"$ToolName --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
$globalNpmPackages = (Get-ToolsetContent).npm.global_packages
|
|
$globalNpmPackagesWithTests = $globalNpmPackages | Where-Object { $_.test } | ForEach-Object { @{ Name = $_.name; Test = $_.test } }
|
|
|
|
Context "Global NPM Packages" {
|
|
It "<Name>" -TestCases $globalNpmPackagesWithTests {
|
|
$Test | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
} |