mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-06 15:18:58 +00:00
test(perf): pin model fallback probe metadata
This commit is contained in:
@@ -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),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user