pester / Pester

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

Fix collection assertions with Should #2513

Closed nohwnd closed 2 weeks ago

nohwnd commented 2 weeks 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.