Skip to content

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

Merged
FriedrichWeinmann merged 1 commit into
PowershellFrameworkCollective:developmentfrom
StevePJp:development
Jun 1, 2020
Merged

Fix for command types on pwsh in Help.Tests.ps1#120
FriedrichWeinmann merged 1 commit into
PowershellFrameworkCollective:developmentfrom
StevePJp:development

Conversation

@StevePJp

@StevePJp StevePJp commented Jun 1, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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