diff --git a/test/common/markdown/markdown.tests.ps1 b/test/common/markdown/markdown.tests.ps1 index 05f759d70..e48ec0c9f 100644 --- a/test/common/markdown/markdown.tests.ps1 +++ b/test/common/markdown/markdown.tests.ps1 @@ -13,16 +13,15 @@ Describe 'Common Tests - Validate Markdown Files' -Tag 'CI' { Push-Location $psscriptroot $skip = $false $NpmInstalled = "not installed" - if (Get-Command -Name 'npm' -ErrorAction SilentlyContinue) + if (Get-Command -Name 'yarn' -ErrorAction SilentlyContinue) { $NpmInstalled = "Installed" - Write-Verbose -Message "NPM is checking Gulp is installed. This may take a few moments." -Verbose + Write-Verbose -Message "Checking if Gulp is installed. This may take a few moments." -Verbose start-nativeExecution { yarn } - start-nativeExecution { yarn add gulp@4.0.0 } if(!(Get-Command -Name 'gulp' -ErrorAction SilentlyContinue)) { start-nativeExecution { - sudo yarn global add 'gulp@4.0.0' + sudo yarn global add 'gulp@4.0.2' } } if(!(Get-Command -Name 'node' -ErrorAction SilentlyContinue)) @@ -37,7 +36,7 @@ Describe 'Common Tests - Validate Markdown Files' -Tag 'CI' { For now we will skip, and write a warning. Work to resolve this is tracked in: https://github.com/PowerShell/PowerShell/issues/3429 #> - Write-Warning "Node and npm are required to run this test" + Write-Warning "Node and yarn are required to run this test" $skip = $true }