From b021a58b4f4eda93589462d49e82dd382ddb47d6 Mon Sep 17 00:00:00 2001 From: Sebastian Herrlinger Date: Wed, 22 Jul 2026 19:48:18 +0200 Subject: [PATCH] test(cli): use owned version metadata --- packages/cli/test/mini-config.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/test/mini-config.test.ts b/packages/cli/test/mini-config.test.ts index 903ca8904f..6d59e98e58 100644 --- a/packages/cli/test/mini-config.test.ts +++ b/packages/cli/test/mini-config.test.ts @@ -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 {