Skip to content

Commit 03ffdec

Browse files
committed
fix(test): harden check-doc-coverage strict-mode assertion
Match Exit-WithCode output without assuming Invoke-TestScriptFile exposes an Error property on the result object.
1 parent 2d92cba commit 03ffdec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/unit/validation/check/validation-check-doc-coverage.tests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function Get-DocCoverageStrictFixture {
7171
)
7272

7373
$result.ExitCode | Should -Be 1
74-
$combined = @($result.Output; $result.Error; $result.StdErr) -join "`n"
75-
$combined | Should -Match 'Missing markdown|blocking issue|Documentation coverage check failed|Exit-WithCode'
74+
# Invoke-TestScriptFile merges streams into Output; Exit-WithCode text may vary by host capture.
75+
[string]$result.Output | Should -Match 'Missing markdown|blocking issue|Documentation coverage check failed|Exit-WithCode|blocking issue\(s\)'
7676
}
7777
}

0 commit comments

Comments
 (0)