Skip to content

Commit

Permalink
Hander Pester dependency better
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hunt committed Jan 4, 2024
1 parent 46992e3 commit ff3715a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ function Build {
function Test {
param ()

Install-Module -Name Pester -MinimumVersion 5.5.0 -Confirm:$false
if ($null -eq (Get-Module Pester -ListAvailable | Where-Object { [version]$_.Version -ge [version]"5.5.0" })) {
Install-Module -Name Pester -MinimumVersion 5.5.0 -Confirm:$false -Force
}

$config = [PesterConfiguration]::Default
$config.Run.Path = "test"
Expand Down

0 comments on commit ff3715a

Please sign in to comment.