@@ -12,25 +12,6 @@ BeforeAll {
1212
1313 # Mock data
1414 $script :TestTempPath = Join-Path $env: TEMP " PesterTest_$ ( Get-Random ) "
15-
16- # Debug output
17- Write-Host " === DEBUG INFORMATION ===" - ForegroundColor Yellow
18- Write-Host " PSScriptRoot: $PSScriptRoot " - ForegroundColor Cyan
19- Write-Host " Repo Root: $repoRoot " - ForegroundColor Cyan
20- Write-Host " Validate Script: $script :ValidateScript " - ForegroundColor Cyan
21- Write-Host " DeepClean Script: $script :DeepCleanScript " - ForegroundColor Cyan
22- Write-Host " Validate Exists: $ ( Test-Path $script :ValidateScript ) " - ForegroundColor Green
23- Write-Host " DeepClean Exists: $ ( Test-Path $script :DeepCleanScript ) " - ForegroundColor Green
24-
25- # List Scripts directory contents
26- $scriptsDir = Join-Path $repoRoot " Scripts"
27- if (Test-Path $scriptsDir ) {
28- Write-Host " Scripts directory contents:" - ForegroundColor Yellow
29- Get-ChildItem $scriptsDir - Name | ForEach-Object { Write-Host " $_ " - ForegroundColor Gray }
30- } else {
31- Write-Host " Scripts directory not found at: $scriptsDir " - ForegroundColor Red
32- }
33- Write-Host " === END DEBUG ===" - ForegroundColor Yellow
3415}
3516
3617AfterAll {
@@ -40,6 +21,34 @@ AfterAll {
4021 }
4122}
4223
24+ Describe " Debug Information" - Tags ' Debug' {
25+
26+ Context " Path Resolution" {
27+ It " Should show debug information" {
28+ Write-Host " === DEBUG INFORMATION ===" - ForegroundColor Yellow
29+ Write-Host " PSScriptRoot: $PSScriptRoot " - ForegroundColor Cyan
30+ Write-Host " Repo Root: $repoRoot " - ForegroundColor Cyan
31+ Write-Host " Validate Script: $script :ValidateScript " - ForegroundColor Cyan
32+ Write-Host " DeepClean Script: $script :DeepCleanScript " - ForegroundColor Cyan
33+ Write-Host " Validate Exists: $ ( Test-Path $script :ValidateScript ) " - ForegroundColor Green
34+ Write-Host " DeepClean Exists: $ ( Test-Path $script :DeepCleanScript ) " - ForegroundColor Green
35+
36+ # List Scripts directory contents
37+ $scriptsDir = Join-Path $repoRoot " Scripts"
38+ if (Test-Path $scriptsDir ) {
39+ Write-Host " Scripts directory contents:" - ForegroundColor Yellow
40+ Get-ChildItem $scriptsDir - Name | ForEach-Object { Write-Host " $_ " - ForegroundColor Gray }
41+ } else {
42+ Write-Host " Scripts directory not found at: $scriptsDir " - ForegroundColor Red
43+ }
44+ Write-Host " === END DEBUG ===" - ForegroundColor Yellow
45+
46+ # This test always passes, it's just for debug output
47+ $true | Should - BeTrue
48+ }
49+ }
50+ }
51+
4352Describe " Basic Tests" - Tags ' Basic' {
4453
4554 Context " Environment Check" {
0 commit comments