pester / vscode-adapter

Run PowerShell Pester Tests with Visual Studio Code
MIT License
58 stars 13 forks source link

RuntimeException: '-HaveParameter' is not a valid Should operator. #160

Closed WrayOfSunshine closed 1 year ago

WrayOfSunshine commented 1 year ago

I was testing this against some tests that we've previously had no issue with and got the title error, repeated below:

RuntimeException: '-HaveParameter' is not a valid Should operator.

This does not match the Pester v5 documentation - https://pester.dev/docs/assertions/#haveparameter

JustinGrote commented 1 year ago

Does it work when running invoke-pester normally? Are you sure you have the latest pester version installed for either winps or pwsh?

JustinGrote commented 1 year ago

I cannot reproduce so make sure you have the latest Pester module and vscode extension and let me know if it persists, closing as unreproducible for now, works fine for me. image