Skip to content

Commit

Permalink
Test (dependencies): Standardize parameters for re-importing of `Pest…
Browse files Browse the repository at this point in the history
…er` module
  • Loading branch information
joeltimothyoh committed Apr 29, 2024
1 parent cf124bf commit 62d385f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Install-TestDependencies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ try {
Install-Module -Name 'Pester' -Repository 'PSGallery' -MinimumVersion $pesterMinimumVersion -MaximumVersion $pesterMaximumVersion -Scope CurrentUser -Force
}
Get-Module Pester -ListAvailable | Out-String | Write-Verbose
Import-Module -Name 'Pester' -RequiredVersion '4.10.1' -Force # Force import to ensure environment uses the correct version of Pester
Import-Module -Name 'Pester' -MinimumVersion $pesterMinimumVersion -MaximumVersion $pesterMaximumVersion -Force # Force import to ensure environment uses the correct version of Pester

}catch {
throw
Expand Down

0 comments on commit 62d385f

Please sign in to comment.