


























@@ -610,7 +610,7 @@ describe("shouldSkipLocalCliCredentialEpoch", () => {
610610const { dir, sessionFile } = createSessionFile();
611611const agentDir = path.join(dir, "agents", "main", "agent");
612612const authProfileId = "test-cli:secret";
613-const prepareExecution = vi.fn(async () => undefined);
613+const prepareExecution = vi.fn(async (_ctx: unknown) => undefined);
614614fs.mkdirSync(agentDir, { recursive: true });
615615saveAuthProfileStore(
616616{
@@ -678,7 +678,7 @@ describe("shouldSkipLocalCliCredentialEpoch", () => {
678678ownerToken: "loopback-owner-token",
679679nonOwnerToken: "loopback-non-owner-token",
680680}));
681-const prepareExecution = vi.fn(async () => ({
681+const prepareExecution = vi.fn(async (_ctx: unknown) => ({
682682env: {
683683GEMINI_CLI_SYSTEM_SETTINGS_PATH: profileSystemSettingsPath,
684684},
@@ -757,8 +757,9 @@ describe("shouldSkipLocalCliCredentialEpoch", () => {
757757ownerToken: "loopback-owner-token",
758758nonOwnerToken: "loopback-non-owner-token",
759759}));
760-const prepareExecution = vi.fn(async (ctx: { env?: Record<string, string> }) => {
761-generatedSystemSettingsPath = ctx.env?.GEMINI_CLI_SYSTEM_SETTINGS_PATH;
760+const prepareExecution = vi.fn(async (ctx: unknown) => {
761+generatedSystemSettingsPath = (ctx as { env?: Record<string, string> }).env
762+?.GEMINI_CLI_SYSTEM_SETTINGS_PATH;
762763throw new Error("Gemini auth profile was selected but no credential material was found");
763764});
764765cliBackendsTesting.setDepsForTest({
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。