You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just published v0.1.2, which should fix the problem.
Incidentally, there was another bug, albeit a benign one: Set-Clipboard and Get-Clipboard were introduced in v5.0, not v5.1.
Still tests with the empty string will fail. But that is another issue.
I assume you mean the warning that is issued to alert users that in MTA mode you cannot copy an empty string to the clipboard for technical reasons. That's a documented limitation.
If PowerShell v.5.1 is running in MTA mode, code will fail on
Error is:
Steps to reproduce
Start PowerShell in MTA mode
Start tests
Invoke-Pester
Expected results: Tests are successful
Actual results: Tests fail with error specified above.
Possible resolution
Check for STA/MTA before checking the version. Then execute 5.1 code only if running in STA mode.
Something like:
The same should be done in both Get and Set commandlet. Still tests with the empty string will fail. But that is another issue.
The text was updated successfully, but these errors were encountered: