You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mocking Out-File doesn't do anything and original Out-File is still called.
2. Describe Your Environment
Pester version : 5.0.2 C:\Users\sfroehlich\Documents\PowerShell\Modules\Pester\5.0.2\Pester.psd1
PowerShell version : 7.0.2
OS version : Microsoft Windows NT 10.0.18362.0
3. Expected Behavior
When mocking Out-File it should not call the built in Out-File and try to write to disk
1. General summary of the issue
Mocking
Out-File
doesn't do anything and originalOut-File
is still called.2. Describe Your Environment
Pester version : 5.0.2 C:\Users\sfroehlich\Documents\PowerShell\Modules\Pester\5.0.2\Pester.psd1
PowerShell version : 7.0.2
OS version : Microsoft Windows NT 10.0.18362.0
3. Expected Behavior
When mocking
Out-File
it should not call the built inOut-File
and try to write to diskExample code that repros the issue
The above code fails at
"Hello World" | Out-File 'c:\test.txt'
with error4.Current Behavior
It tries to write to disk, fails because it doesn't have access
5. Possible Solution
6. Context
The text was updated successfully, but these errors were encountered: