Skip to content

Commit a2ff011

Browse files
sahrizviclaude
andcommitted
test: read PATH or Path in the shell child-env test (Windows)
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6
1 parent e38a6a1 commit a2ff011

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/opencode/test/cli/run/run-mode.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ describe("host markers do not leak into child processes", () => {
207207
expect(env.ALTIMATE_TEST_SENTINEL_937).toBe("present") // process.env came through
208208
expect(env.ALTIMATE_RUN_MODE).toBeUndefined() // and was stripped
209209
expect(env.FROM_PLUGIN).toBe("1")
210-
expect(env.PATH).toBe(process.env.PATH)
210+
expect(env.PATH ?? env.Path).toBe(process.env.PATH ?? process.env.Path) // Windows enumerates `Path`
211211
} finally {
212212
if (savedRun === undefined) delete process.env.ALTIMATE_RUN_MODE
213213
else process.env.ALTIMATE_RUN_MODE = savedRun

0 commit comments

Comments
 (0)