File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
templates/PSFTests/general Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ if ($SkipTest) { return }
48
48
. $ExceptionsFile
49
49
50
50
$includedNames = (Get-ChildItem $CommandPath - Recurse - File | Where-Object Name -like " *.ps1" ).BaseName
51
- $commands = Get-Command - Module (Get-Module $ModuleName ) - CommandType Cmdlet, Function, Workflow | Where-Object Name -in $includedNames
51
+ $commandTypes = @ (' Cmdlet' , ' Function' )
52
+ if ($PSVersionTable.PSEdition -eq ' Desktop' ) { $commandTypes += ' Workflow' }
53
+ $commands = Get-Command - Module (Get-Module $ModuleName ) - CommandType $commandTypes | Where-Object Name -In $includedNames
52
54
53
55
# # When testing help, remember that help is cached at the beginning of each session.
54
56
# # To test, restart session.
You can’t perform that action at this time.
0 commit comments