Tests: fix agent runtime drift

This commit is contained in:
Peter Steinberger
2026-04-07 14:42:21 +08:00
parent e608b7e6f6
commit 7b79579d20
2 changed files with 7 additions and 1 deletions

View File

@@ -954,7 +954,7 @@ describe("model-selection", () => {
expect(result).toEqual({
provider: "google-vertex",
model: "gemini-3.1-flash-lite",
model: "gemini-3.1-flash-lite-preview",
});
});

View File

@@ -107,6 +107,12 @@ vi.mock("../auth-profiles.js", () => ({
return { version: 1, profiles: {} };
}
},
hasAnyAuthProfileStoreSource: (agentDir?: string) => {
if (!agentDir) {
return false;
}
return fsSync.existsSync(path.join(agentDir, "auth-profiles.json"));
},
listProfilesForProvider: (
store: { profiles?: Record<string, { provider?: string }> },
provider: string,