pester / Pester

Pester is the ubiquitous test and mock framework for PowerShell.
https://pester.dev/
Other
3.11k stars 473 forks source link

Fix collection assertions with Should #2513

Closed nohwnd closed 5 months ago

nohwnd commented 5 months ago

Should-Any was not passing when at least one item was passing the predicate, because output is $null when you run with Should-* assertion in the predicate, and it does not fail. But that was converted to $false, and so the item did not pass.