From 4e8106b01930dab32e37547069cb6463a758e647 Mon Sep 17 00:00:00 2001 From: Victor Sumner Date: Sun, 18 Jan 2026 20:39:02 -0500 Subject: [PATCH] test: stabilize non-interactive env hook Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/hooks/non-interactive-env/index.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hooks/non-interactive-env/index.test.ts b/src/hooks/non-interactive-env/index.test.ts index 917eef795..16087f9e2 100644 --- a/src/hooks/non-interactive-env/index.test.ts +++ b/src/hooks/non-interactive-env/index.test.ts @@ -12,12 +12,15 @@ describe("non-interactive-env hook", () => { originalEnv = { SHELL: process.env.SHELL, PSModulePath: process.env.PSModulePath, + CI: process.env.CI, + OPENCODE_NON_INTERACTIVE: process.env.OPENCODE_NON_INTERACTIVE, } // #given clean Unix-like environment for all tests // This prevents CI environments (which may have PSModulePath set) from // triggering PowerShell detection in tests that expect Unix behavior delete process.env.PSModulePath process.env.SHELL = "/bin/bash" + process.env.OPENCODE_NON_INTERACTIVE = "true" }) afterEach(() => {