Skip to content

Commit

Permalink
Try -global param on import-module for Pester to resolve safegetcomma…
Browse files Browse the repository at this point in the history
…nd error
  • Loading branch information
jgeron-suhsd committed Mar 14, 2024
1 parent 72ab396 commit 00c119c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psake.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ $pesterScriptBlock = {
catch {
Write-BuildLog "[$($module.Name)] Installing missing module"
Install-Module @module -Repository PSGallery -Force
Import-Module @module
Import-Module @module -Global
}
}
Push-Location
Expand Down

0 comments on commit 00c119c

Please sign in to comment.