pester / Pester

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

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

Open johlju opened 2 weeks ago

johlju commented 2 weeks 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 2 weeks ago

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

johlju commented 2 weeks ago

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