test: keep cli-provider agent command tests off external auth overlays

This commit is contained in:
Peter Steinberger
2026-04-09 01:11:37 +01:00
parent acdee39fa4
commit 1f3171ac91

View File

@@ -22,6 +22,16 @@ import {
} from "./agent-command.test-support.js";
import { agentCommand } from "./agent.js";
vi.mock("../agents/auth-profiles/store.js", async () => {
const actual = await vi.importActual<typeof import("../agents/auth-profiles/store.js")>(
"../agents/auth-profiles/store.js",
);
return {
...actual,
ensureAuthProfileStore: vi.fn(() => ({ version: 1, profiles: {} })),
};
});
const runtime: RuntimeEnv = {
log: vi.fn(),
error: vi.fn(),