Files
Kilo-Org_kilocode/packages/opencode/test/cli/bin-kilo.test.ts
Ashwinhegde19 6916bf42ed test(cli): add bin/kilo syntax regression guard (#6464)
Adds a parse test for packages/opencode/bin/kilo to prevent regressions like issue #6454 from reaching release binaries.
2026-04-28 20:55:26 +02:00

10 lines
326 B
TypeScript

// kilocode_change - new file
import { test, expect } from "bun:test"
import path from "path"
test("bin/kilo parses", async () => {
const file = Bun.file(path.join(import.meta.dir, "..", "..", "bin", "kilo"))
const code = (await file.text()).replace(/^#![^\n]*\n/, "")
expect(() => new Function(code)).not.toThrow()
})