Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tests/compare-store-and-blocker.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { describe, it, expect, beforeEach } from "vitest";
import { useArenaStore } from "@/lib/store";
import { getRunBlocker } from "@/lib/run-blocker";
import type { CompareResult } from "@/lib/types";
import type { CompareResult, ModelInfo } from "@/lib/types";

// Contracts: the attempts editor actions keep 2–6 attempts and ≤8 checks;
// applyCompareEvent folds the SSE stream into `compare`; the run blocker
Expand Down Expand Up @@ -103,10 +103,11 @@ describe("applyCompareEvent", () => {
});

describe("getRunBlocker — Compare attempts", () => {
const model: ModelInfo = { id: "t:m", providerId: "t", providerName: "T", modelId: "m" };
const base = {
prompt: "Fix it",
participants: [{ modelInfo: { id: "t:m" } }, { modelInfo: { id: "t:m" } }],
availableModels: [{ id: "t:m" }],
participants: [{ modelInfo: model }, { modelInfo: model }],
availableModels: [model],
modelsLoading: false,
options: { engine: "compare-attempts" as const, judgeEnabled: false },
};
Expand Down
Loading