Skip to content

Commit 79ccb49

Browse files
committed
fix(tests): 🐛 Add debug output for TestModule build process
* Added debug statements to log the output path and contents of the `TestModule` after build. * Removed redundant count test for PSD1 and dot-sourced functions with specific file look ups.
1 parent 7bd681d commit 79ccb49

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/build.tests.ps1

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ Describe 'Build' {
7676
$global:PSBuildCompile = $false
7777
./build.ps1 -Task Build
7878
} -WorkingDirectory $script:testModuleSource | Wait-Job
79+
Write-Debug "TestModule output path: $script:testModuleOutputPath"
80+
$items = Get-ChildItem -Path $script:testModuleOutputPath
81+
Write-Debug ($items | ConvertTo-Json -Depth 5)
7982
}
8083

8184
AfterAll {
@@ -86,12 +89,6 @@ Describe 'Build' {
8689
$script:testModuleOutputPath | Should -Exist
8790
}
8891

89-
It 'Has PSD1 and dot-sourced functions' {
90-
$items = Get-ChildItem -Path $script:testModuleOutputPath
91-
Write-Debug $items
92-
$items.Count | Should -Be 6
93-
}
94-
9592
It '<_> should exist' -ForEach @(
9693
"TestModule.psd1",
9794
"TestModule.psm1",

0 commit comments

Comments
 (0)