Skip to content

Commit b3e3e37

Browse files
test(system-agent): mock prepared catalog snapshot
1 parent c4eb17b commit b3e3e37

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎src/system-agent/tui-backend.test.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import type { SystemAgentOverview } from "./overview.js";
88
import { createSystemAgentVerifiedInferenceTestFixture } from "./system-agent.test-helpers.js";
99
import { runSystemAgentTui, type SystemAgentTuiOptions } from "./tui-backend.js";
1010

11-
vi.mock("../agents/prepared-model-catalog.js", () => ({
12-
loadPreparedModelCatalog: vi.fn(async () => []),
13-
}));
14-
1511
vi.mock("../plugins/providers.js", () => ({
1612
resolveOwningPluginIdsForModelRefs: vi.fn(() => []),
1713
resolveOwningPluginIdsForProviderRef: vi.fn(() => []),
@@ -20,6 +16,7 @@ vi.mock("../plugins/providers.js", () => ({
2016
vi.mock("../agents/prepared-model-catalog.js", async (importOriginal) => ({
2117
...(await importOriginal<typeof import("../agents/prepared-model-catalog.js")>()),
2218
// These tests exercise the TUI boundary, not filesystem-backed catalog discovery.
19+
getPreparedModelCatalogSnapshot: vi.fn(() => undefined),
2320
loadPreparedModelCatalog: vi.fn(async () => []),
2421
}));
2522

0 commit comments

Comments
 (0)