From 8fd9c8edc659a63e5bda73dba20652cd2e5f28c2 Mon Sep 17 00:00:00 2001 From: Shakker Date: Sat, 9 May 2026 17:24:21 +0100 Subject: [PATCH] test: reuse minimax vlm import --- src/agents/minimax-vlm.normalizes-api-key.test.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/agents/minimax-vlm.normalizes-api-key.test.ts b/src/agents/minimax-vlm.normalizes-api-key.test.ts index 2838235bac0..98a3606d447 100644 --- a/src/agents/minimax-vlm.normalizes-api-key.test.ts +++ b/src/agents/minimax-vlm.normalizes-api-key.test.ts @@ -1,12 +1,6 @@ -import { afterEach, beforeAll, describe, expect, it, vi } from "vitest"; +import { afterEach, describe, expect, it, vi } from "vitest"; import { withFetchPreconnect } from "../test-utils/fetch-mock.js"; - -let isMinimaxVlmModel: typeof import("./minimax-vlm.js").isMinimaxVlmModel; -let minimaxUnderstandImage: typeof import("./minimax-vlm.js").minimaxUnderstandImage; - -beforeAll(async () => { - ({ isMinimaxVlmModel, minimaxUnderstandImage } = await import("./minimax-vlm.js")); -}); +import { isMinimaxVlmModel, minimaxUnderstandImage } from "./minimax-vlm.js"; describe("minimaxUnderstandImage apiKey normalization", () => { const priorFetch = global.fetch;