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

Open johlju opened 2 weeks ago

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