Skip to content

Commit

Permalink
Fix test logging
Browse files Browse the repository at this point in the history
  • Loading branch information
alerickson committed Oct 28, 2024
1 parent fe36692 commit a748b43
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/InstallPSResourceTests/InstallPSResourceLocal.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ Describe 'Test Install-PSResource for local repositories' -tags 'CI' {
Install-PSResource -Name $testModuleClobber2 -Repository $localRepo -TrustRepository -NoClobber -ErrorVariable ev -ErrorAction SilentlyContinue -verbose
$pkg = Get-InstalledPSResource $testModuleClobber2 -ErrorAction SilentlyContinue

# Get the first available module named 'clobbertestmodule1' and its exported commands
$module2 = (Get-Module -ListAvailable $testModuleClobber2)[0]
$module2Idx = $module[0]
# Iterate through each exported command in the module
foreach ($command in $module2Idx.ExportedCommands.Values) {
if (!$pkg) {
# Get the first available module named 'clobbertestmodule1' and its exported commands
$module2 = (Get-Module -ListAvailable $testModuleClobber2)[0]
$module2Idx = $module[0]
# Iterate through each exported command in the module
foreach ($command in $module2Idx.ExportedCommands.Values) {
# Output the command's name and details
Write-Verbose -Verbose "Command Name: $($command.Name)"
Write-Verbose -Verbose "Command Type: $($command.CommandType)"
Expand Down

0 comments on commit a748b43

Please sign in to comment.