Skip to content

Commit 6a6a6e8

Browse files
committed
Use psscriptroot instead of temp for the custom psdrive in pester
1 parent 63ef72c commit 6a6a6e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__tests__/Invoke-RestMethodWithProgress.tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Describe "Invoke-RestMethodWithProgress" -Tag InvokeRestMethodWithProgress {
99
BeforeEach {
1010
Reset-APIEstimatedResponseTimes
1111
Push-Location -StackName "MOCK-IRMWP" -Path $PSScriptRoot
12-
New-PSDrive -Name "MOCK-IRMWP" -PSProvider "FileSystem" -Root $env:TEMP
12+
New-PSDrive -Name "MOCK-IRMWP" -PSProvider "FileSystem" -Root $PSScriptRoot
1313
}
1414

1515
AfterEach {

0 commit comments

Comments
 (0)