pester / Pester

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

don't return values from assertions except for throw #2508

Closed nohwnd closed 5 months ago

nohwnd commented 5 months ago

Checklist

What is the issue?

leave chaining of assertions for later

Expected Behavior

no value out from 1 | Should-BeTruthy

Steps To Reproduce

No response

Describe your environment

No response

Possible Solution?

No response

fflaten commented 5 months ago

Did you find a problem?

nohwnd commented 5 months ago

I just don't think it is that practical. It was originally done to chain the assertions but it makes it harder to debug, and you can chain them via soft-assertions. So I am removing that functionality for now.

fflaten commented 5 months ago

👍 Should we close #1906 as won't fix then?