test(cli): use owned version metadata

This commit is contained in:
Sebastian Herrlinger
2026-07-22 19:48:18 +02:00
committed by opencode-agent[bot]
parent 6fa47feeda
commit b021a58b4f
+2 -2
View File
@@ -1,10 +1,10 @@
import { NodeFileSystem } from "@effect/platform-node"
import { Global } from "@opencode-ai/util/global"
import { InstallationVersion } from "@opencode-ai/util/installation/version"
import { Effect, Option } from "effect"
import { expect, mock, test } from "bun:test"
import { Config } from "../src/config"
import type { MiniCommandInput } from "../src/mini"
import { OPENCODE_VERSION } from "../src/version"
test("mini handler passes resolved CLI keybinds to the runtime", async () => {
let received: MiniCommandInput["tuiConfig"]
@@ -20,7 +20,7 @@ test("mini handler passes resolved CLI keybinds to the runtime", async () => {
const handler = (await import("../src/commands/handlers/mini")).default
const server = Bun.serve({
port: 0,
fetch: () => Response.json({ healthy: true, version: InstallationVersion, pid: process.pid }),
fetch: () => Response.json({ healthy: true, version: OPENCODE_VERSION, pid: process.pid }),
})
try {