test(models): update auth profile mock

This commit is contained in:
Peter Steinberger
2026-04-29 17:59:00 +01:00
parent 8a06db084d
commit a16f7fb6cd

View File

@@ -12,6 +12,10 @@ vi.mock("../../agents/auth-profiles.js", () => ({
profiles: authProfilesStoreMock.profiles,
}),
isProfileInCooldown: () => false,
listProfilesForProvider: (_store: unknown, provider: string) =>
Object.entries(authProfilesStoreMock.profiles)
.filter(([, profile]) => profile.provider === provider)
.map(([profileId, profile]) => ({ profileId, profile })),
replaceRuntimeAuthProfileStoreSnapshots: (
snapshots: Array<{
store?: { profiles?: Record<string, { type: "api_key"; provider: string; key: string }> };