In both cases the tests rely on Should -Throw -ExpectedMessage. The current release of PSKoans prefers Pester 4.10.1 which treats -ExpectedMessage an a literal.
In Pester 5 this string supports wildcards, which in turn breaks use of types such as [System.Object[]] in an expected message string.
Describe "Koan Bug, Issue, or Help Request"
Context "The Problematic Assertions"
Context "Your Attempts"
N/A
Context "Additional Information"
In both cases the tests rely on
Should -Throw -ExpectedMessage
. The current release of PSKoans prefers Pester 4.10.1 which treats-ExpectedMessage
an a literal.In Pester 5 this string supports wildcards, which in turn breaks use of types such as
[System.Object[]]
in an expected message string.See also: https://github.com/pester/Pester/issues/1793