test: harden codex auth startup contracts

(cherry picked from commit ab7bd17b8f)
This commit is contained in:
Tideclaw 2026-06-21 04:20:10 +00:00
parent 98d39f5ab8
commit 98946183d3

View file

@ -1583,6 +1583,7 @@ describe("bridgeCodexAppServerStartOptions", () => {
});
vi.stubEnv("CODEX_API_KEY", "codex-env-api-key");
vi.stubEnv("OPENAI_API_KEY", "openai-env-api-key");
vi.stubEnv("CODEX_HOME", path.join(agentDir, "codex-home"));
try {
await applyCodexAppServerAuthProfile({
client: { request } as never,
@ -1777,6 +1778,7 @@ describe("bridgeCodexAppServerStartOptions", () => {
});
vi.stubEnv("CODEX_API_KEY", "codex-env-api-key");
vi.stubEnv("OPENAI_API_KEY", "openai-env-api-key");
vi.stubEnv("CODEX_HOME", path.join(agentDir, "codex-home"));
try {
await applyCodexAppServerAuthProfile({
client: { request } as never,