diff --git a/docs/routing/REASONING_ROUTING.md b/docs/routing/REASONING_ROUTING.md index c81d69e3ac..31043fbe22 100644 --- a/docs/routing/REASONING_ROUTING.md +++ b/docs/routing/REASONING_ROUTING.md @@ -1,3 +1,7 @@ +--- +title: "Reasoning Routing" +--- + # Reasoning Routing Reasoning routing rules extend the existing model and combo routing. When no active rule matches, diff --git a/tests/_cp_mock_module.mts b/tests/_cp_mock_module.mts index 15f40ccb6f..4e114c4b06 100644 --- a/tests/_cp_mock_module.mts +++ b/tests/_cp_mock_module.mts @@ -29,4 +29,6 @@ export function resetSpawnCalls() { spawnCalls.length = 0; } -export default { execFile, execFileSync, fork, spawn, execSync, spawnSync }; +const childProcessMock = { execFile, execFileSync, fork, spawn, execSync, spawnSync }; + +export default childProcessMock; diff --git a/tests/unit/antigravity-streaming-passthrough.test.ts b/tests/unit/antigravity-streaming-passthrough.test.ts index 5aef685b7b..15eb654a35 100644 --- a/tests/unit/antigravity-streaming-passthrough.test.ts +++ b/tests/unit/antigravity-streaming-passthrough.test.ts @@ -1,7 +1,6 @@ -// Antigravity streaming-passthrough behavior (#7408): the non-streaming drain -// path (raw SSE + chatCore-side parse) and the credits-extraction pass-through -// TransformStream. Moved verbatim from tests/unit/executor-antigravity.test.ts -// (frozen file-size cap) — same tests, same asserts. +// Antigravity streaming-passthrough behavior (#7408): the buffered non-streaming +// response path and the credits-extraction pass-through TransformStream. Kept +// separate from executor-antigravity.test.ts to respect its frozen file-size cap. import { test } from "node:test"; import assert from "node:assert/strict"; diff --git a/tests/unit/agentrouter-connection-modal-fields.test.ts b/tests/unit/dashboard/agentrouter-connection-modal-fields.test.ts similarity index 92% rename from tests/unit/agentrouter-connection-modal-fields.test.ts rename to tests/unit/dashboard/agentrouter-connection-modal-fields.test.ts index f59b1a5f74..cd8db57f85 100644 --- a/tests/unit/agentrouter-connection-modal-fields.test.ts +++ b/tests/unit/dashboard/agentrouter-connection-modal-fields.test.ts @@ -4,7 +4,7 @@ import assert from "node:assert/strict"; import { assignEditApiKeyProviderSpecificData, buildAddProviderSpecificData, -} from "../../src/app/(dashboard)/dashboard/providers/[id]/components/modals/connectionProviderSpecificData.ts"; +} from "../../../src/app/(dashboard)/dashboard/providers/[id]/components/modals/connectionProviderSpecificData.ts"; // #6850 — the AgentRouter quota tracker (open-sse/services/agentrouterQuotaFetcher.ts) // reads connection.providerSpecificData.consoleApiKey (New-API System Access Token) and @@ -58,7 +58,9 @@ function baseAddOptions(overrides: Partial[0]>) { +function baseEditOptions( + overrides: Partial[0]> +) { return { provider: "agentrouter", formData: BASE_FORM_DATA, @@ -107,7 +109,11 @@ test("buildAddProviderSpecificData still supports bailian-coding-plan consoleApi const data = buildAddProviderSpecificData( baseAddOptions({ provider: "bailian-coding-plan", - formData: { ...BASE_FORM_DATA, consoleApiKey: "oracle-token", newApiUserId: "should-not-persist" }, + formData: { + ...BASE_FORM_DATA, + consoleApiKey: "oracle-token", + newApiUserId: "should-not-persist", + }, }) ); diff --git a/tests/unit/ui/lobe-provider-icons-stepfun.test.tsx b/tests/unit/ui/lobe-provider-icons-stepfun.test.tsx new file mode 100644 index 0000000000..26fa7621a9 --- /dev/null +++ b/tests/unit/ui/lobe-provider-icons-stepfun.test.tsx @@ -0,0 +1,13 @@ +import { describe, expect, it } from "vitest"; + +describe("lobeProviderIcons Stepfun fallback", () => { + it("loads the icon registry and resolves the color slot to the Mono component", async () => { + const { getLobeProviderIcon } = await import("@/shared/components/lobeProviderIcons"); + + const monoIcon = getLobeProviderIcon("stepfun", "mono"); + const colorIcon = getLobeProviderIcon("stepfun", "color"); + + expect(monoIcon).not.toBeNull(); + expect(colorIcon).toBe(monoIcon); + }); +});