Skip to content

Commit 24b6bba

Browse files
committed
test(codex): type auth mock as async void
1 parent 074b925 commit 24b6bba

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

extensions/codex/src/app-server/shared-client.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import { createClientHarness } from "./test-support.js";
77
const mocks = vi.hoisted(() => ({
88
bridgeCodexAppServerStartOptions: vi.fn(async ({ startOptions }) => startOptions),
99
applyCodexAppServerAuthProfile: vi.fn(
10-
async (_params?: { agentDir?: string; authProfileId?: string; config?: unknown }) => undefined,
10+
async (_params?: {
11+
agentDir?: string;
12+
authProfileId?: string;
13+
config?: unknown;
14+
}): Promise<void> => undefined,
1115
),
1216
resolveCodexAppServerAuthProfileIdForAgent: vi.fn(
1317
(params?: { authProfileId?: string }) => params?.authProfileId,
@@ -128,8 +132,8 @@ function clientStartCall(startSpy: unknown) {
128132

129133
function deferNextAuthProfileApplication(): () => void {
130134
let release: () => void = () => {};
131-
const gate = new Promise<undefined>((resolve) => {
132-
release = () => resolve(undefined);
135+
const gate = new Promise<void>((resolve) => {
136+
release = () => resolve();
133137
});
134138
mocks.applyCodexAppServerAuthProfile.mockReturnValueOnce(gate);
135139
return release;

0 commit comments

Comments
 (0)