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`/`Should -Throw` to handle expected message with escaped wildcard #2559

Closed johlju closed 1 month ago

johlju commented 3 months ago

PR Summary

This target v6. 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.

Fix #2558

PR Checklist

johlju commented 3 months ago

@fflaten this passes the tests now. It seemed that fomatOnSave was on in this repos .vscode file so it has formated some lines without me asking it. 🙂