We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81f8c4e commit b888b7eCopy full SHA for b888b7e
1 file changed
templates/PSFTests/general/Help.Tests.ps1
@@ -48,7 +48,9 @@ if ($SkipTest) { return }
48
. $ExceptionsFile
49
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
+$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
54
55
## When testing help, remember that help is cached at the beginning of each session.
56
## To test, restart session.
0 commit comments