@@ -147,14 +147,16 @@ Describe 'Test Install-PSResource for local repositories' -tags 'CI' {
147
147
148
148
149
149
# Get the first available module named 'clobbertestmodule1' and its exported commands
150
- $module = (Get-Module - ListAvailable $testModuleClobber )[0 ]
150
+ $module = (Get-Module - ListAvailable $testModuleClobber )
151
+ Write-Verbose - Verbose " Module Name: $ ( $module.Name ) "
152
+ $moduleIdx = $module [0 ]
151
153
152
154
# Iterate through each exported command in the module
153
- foreach ($command in $module .ExportedCommands.Values ) {
155
+ foreach ($command in $moduleIdx .ExportedCommands.Values ) {
154
156
# Output the command's name and details
155
- Write-Output " Command Name: $ ( $command.Name ) "
156
- Write-Output " Command Type: $ ( $command.CommandType ) "
157
- Write-Output " ----------------------------------"
157
+ Write-Verbose - Verbose " Command Name: $ ( $command.Name ) "
158
+ Write-Verbose - Verbose " Command Type: $ ( $command.CommandType ) "
159
+ Write-Verbose - Verbose " ----------------------------------"
158
160
}
159
161
160
162
@@ -163,13 +165,13 @@ Describe 'Test Install-PSResource for local repositories' -tags 'CI' {
163
165
164
166
# Get the first available module named 'clobbertestmodule1' and its exported commands
165
167
$module2 = (Get-Module - ListAvailable $testModuleClobber2 )[0 ]
166
-
168
+ $module2Idx = $module [ 0 ]
167
169
# Iterate through each exported command in the module
168
- foreach ($command in $module2 .ExportedCommands.Values ) {
170
+ foreach ($command in $module2Idx .ExportedCommands.Values ) {
169
171
# Output the command's name and details
170
- Write-Output " Command Name: $ ( $command.Name ) "
171
- Write-Output " Command Type: $ ( $command.CommandType ) "
172
- Write-Output " ----------------------------------"
172
+ Write-Verbose - Verbose " Command Name: $ ( $command.Name ) "
173
+ Write-Verbose - Verbose " Command Type: $ ( $command.CommandType ) "
174
+ Write-Verbose - Verbose " ----------------------------------"
173
175
}
174
176
175
177
$pkg | Should - BeNullOrEmpty
0 commit comments