Skip to content

Commit 59992e5

Browse files
committed
test(agents): accept rest args in scoped thinking catalog mocks
1 parent 3802c94 commit 59992e5

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎src/agents/prepared-model-catalog.scoped-thinking.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
// static catalog, then scoped live discovery only for runtime-only models (e.g. Ollama).
33
import { beforeEach, describe, expect, it, vi } from "vitest";
44

5-
const manifestCatalogMock = vi.fn((): Array<Record<string, unknown>> => []);
5+
const manifestCatalogMock = vi.fn((..._args: unknown[]): Array<Record<string, unknown>> => []);
66
const scopedStaticMock = vi.fn(
7-
async (): Promise<Record<string, unknown>> => ({
7+
async (..._args: unknown[]): Promise<Record<string, unknown>> => ({
88
entries: [],
99
routeVariants: [],
1010
}),
1111
);
1212
const scopedLiveMock = vi.fn(
13-
async (): Promise<Record<string, unknown>> => ({
13+
async (..._args: unknown[]): Promise<Record<string, unknown>> => ({
1414
entries: [],
1515
routeVariants: [],
1616
}),

‎src/cron/isolated-agent/model-selection.scoped-thinking.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// never through a full live catalog build.
33
import { beforeEach, describe, expect, it, vi } from "vitest";
44

5-
const scopedThinkingCatalogMock = vi.fn(async (): Promise<Array<Record<string, unknown>>> => []);
5+
const scopedThinkingCatalogMock = vi.fn(
6+
async (..._args: unknown[]): Promise<Array<Record<string, unknown>>> => [],
7+
);
68

79
vi.mock("./run-model-selection.runtime.js", async (importOriginal) => {
810
const actual = await importOriginal<typeof import("./run-model-selection.runtime.js")>();

0 commit comments

Comments
 (0)