File tree Expand file tree Collapse file tree
extensions/memory-lancedb Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1965,10 +1965,10 @@ describe("memory plugin e2e", () => {
19651965 expect ( embeddingsCreate ) . not . toHaveBeenCalled ( ) ;
19661966
19671967 await beforePromptBuild ?.( recallEvent , { agentId : "main" } ) ;
1968- await agentEnd ?.( captureEvent , { agentId : "main" , sessionKey : "agent:main:main" } ) ;
19691968 expect ( embeddingsCreate ) . toHaveBeenCalled ( ) ;
1970- expect ( add ) . toHaveBeenCalledTimes ( 1 ) ;
1971- expect ( firstAddedMemory ( add ) . agentId ) . toBe ( "main" ) ;
1969+ embeddingsCreate . mockClear ( ) ;
1970+ await agentEnd ?.( captureEvent , { agentId : "main" , sessionKey : "agent:main:main" } ) ;
1971+ expect ( embeddingsCreate ) . toHaveBeenCalledOnce ( ) ;
19721972
19731973 embeddingsCreate . mockClear ( ) ;
19741974 configFile = {
Original file line number Diff line number Diff line change @@ -432,10 +432,15 @@ function createAutoEnabledProviderConfig() {
432432}
433433
434434function expectAutoEnabledProviderLoad ( params : { rawConfig : unknown ; autoEnabledConfig : unknown } ) {
435- expect ( applyPluginAutoEnableMock ) . toHaveBeenCalledWith ( {
436- config : params . rawConfig ,
437- env : process . env ,
438- } ) ;
435+ expect ( applyPluginAutoEnableMock ) . toHaveBeenCalledWith (
436+ expect . objectContaining ( {
437+ config : params . rawConfig ,
438+ env : process . env ,
439+ manifestRegistry : expect . objectContaining ( {
440+ plugins : expect . arrayContaining ( [ expect . objectContaining ( { id : "google" } ) ] ) ,
441+ } ) ,
442+ } ) ,
443+ ) ;
439444 expectProviderRuntimeRegistryLoad ( { config : params . autoEnabledConfig } ) ;
440445}
441446function expectOwningPluginIds ( provider : string , expectedPluginIds ?: readonly string [ ] ) {
You can’t perform that action at this time.
0 commit comments