Open
Description
Checklist
- Feature request has a meaningful title
- I have searched the existing issues. See all issues
- I have tested using the latest version of Pester. See Installation and update guide.
Summary of the feature request
$TimeToSleep = 5
1..10 | ForEach-Object -Parallel {
$TimeToSleep = $using:TimeToSleep
Start-Sleep $TimeToSleep
} -ThrottleLimit 5
I would like to be able to mock a function inside of a "ForEach-Object -Parallel". In the above rather contrieved example I would like to be able to mock the Start-Sleep function
Thx
How should it work?
No response