import { describe, expect, it } from "vitest"; import { selectQaRunnerModelOptions } from "./model-catalog.runtime.js"; describe("qa runner model catalog", () => { it("filters to available rows and prefers gpt-5.5 first", () => { expect( selectQaRunnerModelOptions([ { key: "anthropic/claude-sonnet-4-5", name: "Claude Sonnet 4.5", input: "text", available: true, missing: false, }, { key: "openai/gpt-5.5", name: "gpt-5.5", input: "text,image", available: true, missing: false, }, { key: "openrouter/auto", name: "OpenRouter Auto", input: "text", available: false, missing: false, }, ]).map((entry) => entry.key), ).toEqual(["openai/gpt-5.5", "anthropic/claude-sonnet-4-5"]); }); });