SHiPS
SHiPS copied to clipboard
Set Pester MaximumVersion 4.10.1
Invoke-SHiPSTest failed as follows:
PS> Invoke-SHiPSTest
...
[-] Get and Set test.Get Set Tests 336ms (321ms|15ms)
RuntimeException: Legacy Should syntax (without dashes) is not supported in Pester 5.
Please refer to migration guide at: https://pester.dev/docs/migrations/v3-to-v4
This is because Invoke-SHiPSTest installs Pester v5, the latest version, but current test cases are written as v3/4.
For a workaround, set the -MaximumVersion parameter 4.10.1, the latest version of v4.x.
(These test cases should be rewritten as v5 in the future.)