The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
test: cover commands after empty PowerShell foreach body
Danteb07f6909871b
diff --git a/tests/lib/powershell-destructive-command.test.js b/tests/lib/powershell-destructive-command.test.jsindex 16562ef2c..2e703a506 100644--- a/tests/lib/powershell-destructive-command.test.js+++ b/tests/lib/powershell-destructive-command.test.js@@ -485,6 +485,10 @@ test('distinguishes foreach statements from the pipeline alias', () => {"foreach ($r in 'aaaaaaaaaaaaaa') { Remove-Item -Force C:/tmp/demo }",[RULES.REMOVE_FORCE]);+ expectRules(+ "foreach ($r in 'aaaaaaaaaaaaaa') {}; Remove-Item -Force C:/tmp/demo",+ [RULES.REMOVE_FORCE]+ );expectRules('1 | foreach { Remove-Item -Force C:/tmp/demo }', [RULES.REMOVE_FORCE,]);