File tree Expand file tree Collapse file tree
extensions/codex/src/app-server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ import { createClientHarness } from "./test-support.js";
77const 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
129133function 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 ;
You can’t perform that action at this time.
0 commit comments