@@ -84,7 +84,7 @@ function makeFake(options: FakeFactoryOptions = {}) {
8484
8585 const client : FakeClient = {
8686 id,
87- copilotHome : clientOptions . copilotHome ?? "" ,
87+ copilotHome : clientOptions . baseDirectory ?? "" ,
8888 start : vi . fn ( async ( ) => undefined ) ,
8989 stop : vi . fn ( async ( ) => {
9090 stops . push ( id ) ;
@@ -277,11 +277,11 @@ describe("createCopilotClientPool", () => {
277277 const sdkFactory = async ( clientOptions : CopilotClientOptions ) => {
278278 attempt += 1 ;
279279 if ( attempt === 1 ) {
280- throw new Error ( `constructor failed for ${ String ( clientOptions . copilotHome ) } ` ) ;
280+ throw new Error ( `constructor failed for ${ String ( clientOptions . baseDirectory ) } ` ) ;
281281 }
282282 return {
283283 id : attempt ,
284- copilotHome : clientOptions . copilotHome ,
284+ copilotHome : clientOptions . baseDirectory ,
285285 start : vi . fn ( async ( ) => undefined ) ,
286286 stop : vi . fn ( async ( ) => [ ] ) ,
287287 createSession : vi . fn ( async ( ) => ( { } ) ) ,
@@ -454,7 +454,7 @@ describe("createCopilotClientPool", () => {
454454 expect ( first . client ) . toBe ( second . client ) ;
455455 expect ( first . key . copilotHome ) . toBe ( normalizedHome ) ;
456456 expect ( second . key . copilotHome ) . toBe ( normalizedHome ) ;
457- expect ( String ( sdk . ctorCalls [ 0 ] ?. copilotHome ) ) . toBe ( normalizedHome ) ;
457+ expect ( String ( sdk . ctorCalls [ 0 ] ?. baseDirectory ) ) . toBe ( normalizedHome ) ;
458458 } finally {
459459 Object . defineProperty ( process , "platform" , { configurable : true , value : originalPlatform } ) ;
460460 }
@@ -482,6 +482,6 @@ describe("createCopilotClientPool", () => {
482482 expect ( first . key . copilotHome ) . toBe ( normalizedHome ) ;
483483 expect ( second . key . copilotHome ) . toBe ( normalizedHome ) ;
484484 expect ( sdk . ctorCalls . length ) . toBe ( 1 ) ;
485- expect ( String ( sdk . ctorCalls [ 0 ] ?. copilotHome ) ) . toBe ( normalizedHome ) ;
485+ expect ( String ( sdk . ctorCalls [ 0 ] ?. baseDirectory ) ) . toBe ( normalizedHome ) ;
486486 } ) ;
487487} ) ;
0 commit comments