pester / Pester

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

Fix `Should -Throw` to handle expected message with escaped wildcard (backport) #2560

Closed johlju closed 1 month ago

johlju commented 3 months ago

PR Summary

This target v5. This resolves #2558 so that when the expected message containing escaped wildcard is output is removes the escaped character so it shows the correct expected message that differ from the actual value.

Part of issue #2558

PR Checklist

johlju commented 3 months ago

Okay, that was not correct. Know what I did wrong. Trying again.

johlju commented 3 months ago

Reverted to tag 5.6.1 and rebase to rel/5.6.x. Looks good now.

nohwnd commented 1 month ago

Thank you.