@@ -139,12 +139,11 @@ describe("memory embedding provider registration", () => {
139139 if ( ! adapter ) {
140140 throw new Error ( "expected local embedding provider adapter to be registered" ) ;
141141 }
142- expect ( adapter ) . toEqual (
143- expect . objectContaining ( {
144- id : "local" ,
145- defaultModel : DEFAULT_LOCAL_MODEL ,
146- } ) ,
147- ) ;
142+ expect ( adapter . id ) . toBe ( "local" ) ;
143+ expect ( adapter . defaultModel ) . toBe ( DEFAULT_LOCAL_MODEL ) ;
144+ expect ( adapter . transport ) . toBe ( "local" ) ;
145+ expect ( adapter . authProviderId ) . toBeUndefined ( ) ;
146+ expect ( adapter . autoSelectPriority ) . toBe ( 10 ) ;
148147 } ) ;
149148} ) ;
150149
@@ -343,15 +342,13 @@ describe("memory index", () => {
343342 expect ( results . length ) . toBeGreaterThan ( 0 ) ;
344343 expect ( results [ 0 ] ?. path ) . toContain ( "memory/2026-01-12.md" ) ;
345344 const status = manager . status ( ) ;
346- expect ( status . sourceCounts ) . toEqual (
347- expect . arrayContaining ( [
348- expect . objectContaining ( {
349- source : "memory" ,
350- files : status . files ,
351- chunks : status . chunks ,
352- } ) ,
353- ] ) ,
354- ) ;
345+ expect ( status . sourceCounts ) . toStrictEqual ( [
346+ {
347+ source : "memory" ,
348+ files : status . files ,
349+ chunks : status . chunks ,
350+ } ,
351+ ] ) ;
355352 } finally {
356353 await manager . close ?.( ) ;
357354 }
@@ -467,9 +464,13 @@ describe("memory index", () => {
467464 EMBEDDING_PROBE_CACHE_TTL_MS ,
468465 ) ;
469466 }
470- await expect ( second . probeEmbeddingAvailability ( ) ) . resolves . toEqual (
471- expect . objectContaining ( { ok : true , cached : true } ) ,
472- ) ;
467+ await expect ( second . probeEmbeddingAvailability ( ) ) . resolves . toStrictEqual ( {
468+ ok : true ,
469+ checked : true ,
470+ cached : true ,
471+ checkedAtMs : cachedBeforeProbe ?. checkedAtMs ,
472+ cacheExpiresAtMs : cachedBeforeProbe ?. cacheExpiresAtMs ,
473+ } ) ;
473474 expect ( embedBatchCalls ) . toBe ( 1 ) ;
474475
475476 const cached = second . getCachedEmbeddingAvailability ?.( ) ;
0 commit comments