PowerShell / SHiPS

Simple Hierarchy in PowerShell - developing PowerShell provider got so much easier
MIT License
185 stars 31 forks source link

Set Pester MaximumVersion 4.10.1 #128

Open matt9ucci opened 2 years ago

matt9ucci commented 2 years ago

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.)