Skip to content

Fix for command types on pwsh in Help.Tests.ps1 #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2020
Merged

Conversation

StevePJp
Copy link
Contributor

@StevePJp StevePJp commented Jun 1, 2020

The Help.Tests.ps1 in the PSFTests attempts to test all commands of type Cmdlet, Function, and Workflow. The -CommandType parameter of Get-Command expects a collection of [System.Management.Automation.CommandTypes] . Workflow was removed from this enum in pwsh causing the test to error.

This pull request sets cmdlet and function as the default and adds workflow if the detected PSVersiontable.PSEdition is Desktop.

@FriedrichWeinmann FriedrichWeinmann merged commit d5f3ecf into PowershellFrameworkCollective:development Jun 1, 2020
@FriedrichWeinmann
Copy link
Member

Awesome, thanks for the catch :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants