@@ -85,7 +85,7 @@ function makeFake(options: FakeFactoryOptions = {}) {
8585
8686 const client : FakeClient = {
8787 id,
88- copilotHome : clientOptions . baseDirectory ?? "" ,
88+ copilotHome : clientOptions . copilotHome ?? "" ,
8989 start : vi . fn ( async ( ) => undefined ) ,
9090 stop : vi . fn ( async ( ) => {
9191 stops . push ( id ) ;
@@ -278,11 +278,11 @@ describe("createCopilotClientPool", () => {
278278 const sdkFactory = async ( clientOptions : CopilotClientOptions ) => {
279279 attempt += 1 ;
280280 if ( attempt === 1 ) {
281- throw new Error ( `constructor failed for ${ String ( clientOptions . baseDirectory ) } ` ) ;
281+ throw new Error ( `constructor failed for ${ String ( clientOptions . copilotHome ) } ` ) ;
282282 }
283283 return {
284284 id : attempt ,
285- copilotHome : clientOptions . baseDirectory ,
285+ copilotHome : clientOptions . copilotHome ,
286286 start : vi . fn ( async ( ) => undefined ) ,
287287 stop : vi . fn ( async ( ) => [ ] ) ,
288288 createSession : vi . fn ( async ( ) => ( { } ) ) ,
@@ -455,7 +455,7 @@ describe("createCopilotClientPool", () => {
455455 expect ( first . client ) . toBe ( second . client ) ;
456456 expect ( first . key . copilotHome ) . toBe ( normalizedHome ) ;
457457 expect ( second . key . copilotHome ) . toBe ( normalizedHome ) ;
458- expect ( String ( sdk . ctorCalls [ 0 ] ?. baseDirectory ) ) . toBe ( normalizedHome ) ;
458+ expect ( String ( sdk . ctorCalls [ 0 ] ?. copilotHome ) ) . toBe ( normalizedHome ) ;
459459 } finally {
460460 Object . defineProperty ( process , "platform" , { configurable : true , value : originalPlatform } ) ;
461461 }
@@ -483,7 +483,7 @@ describe("createCopilotClientPool", () => {
483483 expect ( first . key . copilotHome ) . toBe ( normalizedHome ) ;
484484 expect ( second . key . copilotHome ) . toBe ( normalizedHome ) ;
485485 expect ( sdk . ctorCalls . length ) . toBe ( 1 ) ;
486- expect ( String ( sdk . ctorCalls [ 0 ] ?. baseDirectory ) ) . toBe ( normalizedHome ) ;
486+ expect ( String ( sdk . ctorCalls [ 0 ] ?. copilotHome ) ) . toBe ( normalizedHome ) ;
487487 } ) ;
488488} ) ;
489489
0 commit comments