test(codex): pin desktop platform fixtures

This commit is contained in:
joshavant
2026-08-22 02:05:05 -05:00
parent cbd5c9d419
commit 1f80f7b234
2 changed files with 18 additions and 0 deletions
@@ -176,6 +176,15 @@ vi.mock("./computer-use-cache.js", () => ({
computerUseServiceMocks.ensureCodexComputerUseSharedPluginCache,
}));
vi.mock("./desktop-app-paths.js", async (importOriginal) => {
const actual = await importOriginal<typeof import("./desktop-app-paths.js")>();
return {
...actual,
resolveMacOSDesktopCodexAppPathCandidates: (platform?: NodeJS.Platform) =>
actual.resolveMacOSDesktopCodexAppPathCandidates(platform ?? "darwin"),
};
});
afterEach(() => {
vi.unstubAllEnvs();
clearRuntimeAuthProfileStoreSnapshots();
@@ -63,6 +63,15 @@ vi.mock("./computer-use-cache.js", () => ({
managedProvisioningMocks.ensureCodexComputerUseSharedPluginCache,
}));
vi.mock("./desktop-app-paths.js", async (importOriginal) => {
const actual = await importOriginal<typeof import("./desktop-app-paths.js")>();
return {
...actual,
resolveMacOSDesktopCodexAppPathCandidates: (platform?: NodeJS.Platform) =>
actual.resolveMacOSDesktopCodexAppPathCandidates(platform ?? "darwin"),
};
});
import {
ensureCodexComputerUse,
installCodexComputerUse,