test(perf): pin session status metadata fixtures

This commit is contained in:
Peter Steinberger
2026-05-06 16:04:43 +01:00
parent 3a9aec120c
commit 589f6685e6

View File

@@ -26,6 +26,10 @@ const resolveEnvApiKeyMock = vi.hoisted(() =>
const resolveUsableCustomProviderApiKeyMock = vi.hoisted(() =>
vi.fn((_params?: { provider?: string }) => null as { apiKey: string; source: string } | null),
);
const emptyPluginMetadataSnapshot = vi.hoisted(() => ({
configFingerprint: "session-status-test-empty-plugin-metadata",
plugins: [],
}));
const createMockConfig = () => ({
session: { mainKey: "main", scope: "per-sender" },
@@ -243,6 +247,9 @@ vi.mock("../agents/model-catalog.js", createModelCatalogModuleMock);
vi.mock("../agents/provider-model-normalization.runtime.js", () => ({
normalizeProviderModelIdWithRuntime: () => undefined,
}));
vi.mock("../plugins/current-plugin-metadata-snapshot.js", () => ({
getCurrentPluginMetadataSnapshot: () => emptyPluginMetadataSnapshot,
}));
// Keep provider-runtime/plugin activation out of this focused tool test. The
// session_status surface only needs model selection semantics here, not real
// bundled provider registration.