test(cli): use owned version metadata
This commit is contained in:
committed by
opencode-agent[bot]
parent
6fa47feeda
commit
b021a58b4f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user