1 changed file
README.md | ||
Add comment 1 # Taken with love from @juneb_get_help (https://raw.githubusercontent.com/juneb/PesterTDD/master/Module.Help.Tests.ps1)
Add comment 2 Minus $commands = Get-Command -Module (Get-Module $env:BHProjectName) -CommandType Cmdlet, Function, Workflow # Not alias
Add comment 2 Plus # Import module
Add comment 3 Plus if (-not (Get-Module -Name $env:BHProjectName -ListAvailable)) {
Add comment 4 Plus Import-Module -Name $env:BHPSModuleManifest -ErrorAction 'Stop' -Force
Add comment 5 Plus }
Add comment 6 Plus $commands = Get-Command -Module $env:BHProjectName -CommandType Cmdlet, Function, Workflow -ErrorAction 'Stop' # Not alias
Add comment 3 7
Add comment 4 8 ## When testing help, remember that help is cached at the beginning of each session.
Add comment 5 9 ## To test, restart session.