mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
* Pester Tests Approach implementation. * changes for netPath
This commit is contained in:
21
images/win/scripts/Tests/Node.Tests.ps1
Normal file
21
images/win/scripts/Tests/Node.Tests.ps1
Normal file
@@ -0,0 +1,21 @@
|
||||
Describe "Node.JS" {
|
||||
Context "Basic modules"{
|
||||
It "<ToolName> " -TestCases @(
|
||||
@{ ToolName = "node" }
|
||||
@{ ToolName = "npm" }
|
||||
) {
|
||||
"$ToolName --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
Context "Global NPM Packages" {
|
||||
It "<ToolName> " -TestCases @(
|
||||
@{ ToolName = "gulp" }
|
||||
@{ ToolName = "grunt" }
|
||||
@{ ToolName = "yarn" }
|
||||
@{ ToolName = "lerna" }
|
||||
@{ ToolName = "newman" }
|
||||
) {
|
||||
"$ToolName --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user