Describe "Koan Bug, Issue, or Help Request"
- AboutAssignmentAndArithmetic
Context "The Problematic Assertions"
- Subtraction\cannot be used with strings
- Modulus\cannot be used on non-numeric values
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: pester/Pester#1793