Skip to content

Commit 677e829

Browse files
author
Kevin Orr
committed
align local import-module calls with Pester.ps1
1 parent 3ac22cb commit 677e829

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extension/task/HelperModule.psm1

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function Import-Pester {
4646
}
4747
catch {
4848
Write-Host "##vso[task.logissue type=warning]Falling back to version of Pester shipped with extension. To use a newer version please update the version of PowerShellGet available on this machine."
49-
Import-Module "$PSScriptRoot\4.10.1\Pester.psd1" -force -Verbose:$false
49+
Import-Module -Name (Join-Path $PSScriptRoot "4.10.1\Pester.psd1") -Force -Verbose:$false
5050
}
5151
}
5252

@@ -67,7 +67,7 @@ function Import-Pester {
6767
}
6868
else {
6969
Write-Host "##vso[task.logissue type=warning]Falling back to version of Pester shipped with extension. To use a newer version please update the version of PowerShellGet available on this machine."
70-
Import-Module "$PSScriptRoot\4.10.1\Pester.psd1" -Force -Verbose:$false
70+
Import-Module -Name (Join-Path $PSScriptRoot "4.10.1\Pester.psd1") -Force -Verbose:$false
7171
}
7272

7373
}

0 commit comments

Comments
 (0)