From e544bc04b00ad0ed50f4e8b2a77bf5360fe11173 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 28 May 2026 05:05:26 +0000 Subject: [PATCH] chore: publish from staged --- instructions/powershell-pester-5.instructions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/instructions/powershell-pester-5.instructions.md b/instructions/powershell-pester-5.instructions.md index 78b81ada..821ae34d 100644 --- a/instructions/powershell-pester-5.instructions.md +++ b/instructions/powershell-pester-5.instructions.md @@ -121,6 +121,7 @@ Invoke-Pester -TagFilter 'Unit' -ExcludeTagFilter 'Slow' - **`-Skip`**: Available on `Describe`, `Context`, and `It` to skip tests - **Conditional**: Use `-Skip:$condition` for dynamic skipping - **Runtime Skip**: Use `Set-ItResult -Skipped` during test execution (setup/teardown still run) +- **Ends the test body**: `Set-ItResult -Skipped`/`-Inconclusive` throws internally to end the `It` block, so code after it does not run; a trailing `return` is unreachable and should not be added ```powershell It 'Should work on Windows' -Skip:(-not $IsWindows) { }