test: reuse minimax vlm import

This commit is contained in:
Shakker
2026-05-09 17:24:21 +01:00
parent d65fbdf37f
commit 8fd9c8edc6

View File

@@ -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;