test(perf): pin model fallback probe metadata

This commit is contained in:
Peter Steinberger
2026-05-06 16:05:47 +01:00
parent 589f6685e6
commit 17a7bc7352

View File

@@ -13,10 +13,6 @@ vi.mock("./auth-profiles/store.js", () => ({
loadAuthProfileStoreForRuntime: vi.fn(),
}));
vi.mock("./auth-profiles/source-check.js", () => ({
hasAnyAuthProfileStoreSource: vi.fn(),
}));
vi.mock("./auth-profiles/usage.js", () => ({
getSoonestCooldownExpiry: vi.fn(),
isProfileInCooldown: vi.fn(),
@@ -31,6 +27,15 @@ vi.mock("./provider-model-normalization.runtime.js", () => ({
normalizeProviderModelIdWithRuntime: () => undefined,
}));
const emptyPluginMetadataSnapshot = vi.hoisted(() => ({
configFingerprint: "model-fallback-probe-test-empty-plugin-metadata",
plugins: [],
}));
vi.mock("../plugins/current-plugin-metadata-snapshot.js", () => ({
getCurrentPluginMetadataSnapshot: () => emptyPluginMetadataSnapshot,
}));
vi.mock("./auth-profiles/source-check.js", () => ({
hasAnyAuthProfileStoreSource: vi.fn(() => true),
}));