Merge pull request #907 from vsumner/pr-skill-cleanup

test: stabilize non-interactive env hook
This commit is contained in:
Kenny
2026-01-19 19:14:55 -05:00
committed by GitHub

View File

@@ -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(() => {