refactor: kilo compat for v1.14.29

This commit is contained in:
Mark IJbema
2026-04-29 17:24:20 +02:00
parent 5e67efc2fd
commit 7d375b93ee
1673 changed files with 1498 additions and 399138 deletions
+5 -5
View File
@@ -69,9 +69,9 @@ describe("util.process", () => {
})
test("merges environment overrides", async () => {
const out = await Process.run(node('process.stdout.write(process.env.OPENCODE_TEST ?? "")'), {
const out = await Process.run(node('process.stdout.write(process.env.KILO_TEST ?? "")'), {
env: {
OPENCODE_TEST: "set",
KILO_TEST: "set",
},
})
expect(out.stdout.toString()).toBe("set")
@@ -80,15 +80,15 @@ describe("util.process", () => {
test("uses shell in run on Windows", async () => {
if (process.platform !== "win32") return
const out = await Process.run(["set", "OPENCODE_TEST_SHELL"], {
const out = await Process.run(["set", "KILO_TEST_SHELL"], {
shell: true,
env: {
OPENCODE_TEST_SHELL: "ok",
KILO_TEST_SHELL: "ok",
},
})
expect(out.code).toBe(0)
expect(out.stdout.toString()).toContain("OPENCODE_TEST_SHELL=ok")
expect(out.stdout.toString()).toContain("KILO_TEST_SHELL=ok")
})
test("runs cmd scripts with spaces on Windows without shell", async () => {