@@ -140,6 +140,7 @@ describe('useFilteredConnections', function () {
140140 filterRegex : null ,
141141 fetchAllCollections : fetchAllCollectionsStub ,
142142 onDatabaseExpand : onDatabaseExpandStub ,
143+ excludeInactive : false ,
143144 } ,
144145 } ) ;
145146
@@ -155,6 +156,7 @@ describe('useFilteredConnections', function () {
155156 filterRegex : null ,
156157 fetchAllCollections : fetchAllCollectionsStub ,
157158 onDatabaseExpand : onDatabaseExpandStub ,
159+ excludeInactive : false ,
158160 } ,
159161 } ) ;
160162
@@ -175,6 +177,7 @@ describe('useFilteredConnections', function () {
175177 filterRegex : null ,
176178 fetchAllCollections : fetchAllCollectionsStub ,
177179 onDatabaseExpand : onDatabaseExpandStub ,
180+ excludeInactive : false ,
178181 } ,
179182 } ) ;
180183
@@ -206,6 +209,7 @@ describe('useFilteredConnections', function () {
206209 filterRegex : null ,
207210 fetchAllCollections : fetchAllCollectionsStub ,
208211 onDatabaseExpand : onDatabaseExpandStub ,
212+ excludeInactive : false ,
209213 } ,
210214 } ) ;
211215
@@ -258,6 +262,7 @@ describe('useFilteredConnections', function () {
258262 filterRegex : null ,
259263 fetchAllCollections : fetchAllCollectionsStub ,
260264 onDatabaseExpand : onDatabaseExpandStub ,
265+ excludeInactive : false ,
261266 } ,
262267 } ) ;
263268
@@ -294,6 +299,7 @@ describe('useFilteredConnections', function () {
294299 filterRegex : null ,
295300 fetchAllCollections : fetchAllCollectionsStub ,
296301 onDatabaseExpand : onDatabaseExpandStub ,
302+ excludeInactive : false ,
297303 } ,
298304 } ) ;
299305
@@ -340,6 +346,7 @@ describe('useFilteredConnections', function () {
340346 filterRegex : null ,
341347 fetchAllCollections : fetchAllCollectionsStub ,
342348 onDatabaseExpand : onDatabaseExpandStub ,
349+ excludeInactive : false ,
343350 } ,
344351 } ) ;
345352
@@ -373,6 +380,7 @@ describe('useFilteredConnections', function () {
373380 filterRegex : null ,
374381 fetchAllCollections : fetchAllCollectionsStub ,
375382 onDatabaseExpand : onDatabaseExpandStub ,
383+ excludeInactive : false ,
376384 } ,
377385 }
378386 ) ;
@@ -407,6 +415,7 @@ describe('useFilteredConnections', function () {
407415 filterRegex : null ,
408416 fetchAllCollections : fetchAllCollectionsStub ,
409417 onDatabaseExpand : onDatabaseExpandStub ,
418+ excludeInactive : false ,
410419 } ) ;
411420 // should remove the expanded state of connection 2
412421 await waitFor ( ( ) => {
@@ -423,6 +432,7 @@ describe('useFilteredConnections', function () {
423432 filterRegex : null ,
424433 fetchAllCollections : fetchAllCollectionsStub ,
425434 onDatabaseExpand : onDatabaseExpandStub ,
435+ excludeInactive : false ,
426436 } ) ;
427437 await waitFor ( ( ) => {
428438 expect ( result . current . expanded ) . to . deep . equal ( {
@@ -445,6 +455,7 @@ describe('useFilteredConnections', function () {
445455 filterRegex : new RegExp ( '_connection' , 'i' ) , // match everything basically
446456 fetchAllCollections : fetchAllCollectionsStub ,
447457 onDatabaseExpand : onDatabaseExpandStub ,
458+ excludeInactive : false ,
448459 } ,
449460 }
450461 ) ;
@@ -460,6 +471,7 @@ describe('useFilteredConnections', function () {
460471 filterRegex : new RegExp ( 'disconnected_connection' , 'i' ) , // match disconnected one
461472 fetchAllCollections : fetchAllCollectionsStub ,
462473 onDatabaseExpand : onDatabaseExpandStub ,
474+ excludeInactive : false ,
463475 } ) ;
464476 await waitFor ( ( ) => {
465477 expect ( result . current . filtered ) . to . be . deep . equal ( [
@@ -475,6 +487,7 @@ describe('useFilteredConnections', function () {
475487 filterRegex : new RegExp ( 'db_ready_1_1' , 'i' ) , // match first database basically
476488 fetchAllCollections : fetchAllCollectionsStub ,
477489 onDatabaseExpand : onDatabaseExpandStub ,
490+ excludeInactive : false ,
478491 } ,
479492 } ) ;
480493
@@ -515,6 +528,7 @@ describe('useFilteredConnections', function () {
515528 filterRegex : new RegExp ( 'Matching' , 'i' ) , // this matches connection as well as database
516529 fetchAllCollections : fetchAllCollectionsStub ,
517530 onDatabaseExpand : onDatabaseExpandStub ,
531+ excludeInactive : false ,
518532 } ,
519533 } ) ;
520534
@@ -532,6 +546,7 @@ describe('useFilteredConnections', function () {
532546 filterRegex : new RegExp ( 'coll_ready_2_1' , 'i' ) , // match second db's collection
533547 fetchAllCollections : fetchAllCollectionsStub ,
534548 onDatabaseExpand : onDatabaseExpandStub ,
549+ excludeInactive : false ,
535550 } ,
536551 } ) ;
537552
@@ -560,6 +575,7 @@ describe('useFilteredConnections', function () {
560575 filterRegex : new RegExp ( 'ready_2_1' , 'i' ) , // this matches 1 database and 1 collection
561576 fetchAllCollections : fetchAllCollectionsStub ,
562577 onDatabaseExpand : onDatabaseExpandStub ,
578+ excludeInactive : false ,
563579 } ,
564580 } ) ;
565581
@@ -578,6 +594,7 @@ describe('useFilteredConnections', function () {
578594 filterRegex : new RegExp ( 'coll_ready_1_1' , 'i' ) ,
579595 fetchAllCollections : fetchAllCollectionsStub ,
580596 onDatabaseExpand : onDatabaseExpandStub ,
597+ excludeInactive : false ,
581598 } ,
582599 } ) ;
583600
@@ -599,9 +616,10 @@ describe('useFilteredConnections', function () {
599616 {
600617 initialProps : {
601618 connections : mockSidebarConnections ,
602- filterRegex : null ,
619+ filterRegex : null as RegExp | null ,
603620 fetchAllCollections : fetchAllCollectionsStub ,
604621 onDatabaseExpand : onDatabaseExpandStub ,
622+ excludeInactive : false ,
605623 } ,
606624 }
607625 ) ;
@@ -620,6 +638,7 @@ describe('useFilteredConnections', function () {
620638 filterRegex : new RegExp ( 'coll_ready_1_1' , 'i' ) ,
621639 fetchAllCollections : fetchAllCollectionsStub ,
622640 onDatabaseExpand : onDatabaseExpandStub ,
641+ excludeInactive : false ,
623642 } ) ;
624643 await waitFor ( ( ) => {
625644 expect ( result . current . expanded ) . to . deep . equal ( {
@@ -640,9 +659,10 @@ describe('useFilteredConnections', function () {
640659 {
641660 initialProps : {
642661 connections : mockSidebarConnections ,
643- filterRegex : new RegExp ( 'coll_ready_1_1' , 'i' ) ,
662+ filterRegex : new RegExp ( 'coll_ready_1_1' , 'i' ) as RegExp | null ,
644663 fetchAllCollections : fetchAllCollectionsStub ,
645664 onDatabaseExpand : onDatabaseExpandStub ,
665+ excludeInactive : false ,
646666 } ,
647667 }
648668 ) ;
@@ -661,6 +681,7 @@ describe('useFilteredConnections', function () {
661681 filterRegex : null ,
662682 fetchAllCollections : fetchAllCollectionsStub ,
663683 onDatabaseExpand : onDatabaseExpandStub ,
684+ excludeInactive : false ,
664685 } ) ;
665686 await waitFor ( ( ) => {
666687 expect ( result . current . expanded ) . to . deep . equal ( {
@@ -682,6 +703,7 @@ describe('useFilteredConnections', function () {
682703 filterRegex : new RegExp ( 'coll_ready_1_1' , 'i' ) ,
683704 fetchAllCollections : fetchAllCollectionsStub ,
684705 onDatabaseExpand : onDatabaseExpandStub ,
706+ excludeInactive : false ,
685707 } ,
686708 } ) ;
687709
@@ -714,6 +736,7 @@ describe('useFilteredConnections', function () {
714736 filterRegex : new RegExp ( 'coll_ready_1_1' , 'i' ) ,
715737 fetchAllCollections : fetchAllCollectionsStub ,
716738 onDatabaseExpand : onDatabaseExpandStub ,
739+ excludeInactive : false ,
717740 } ,
718741 } ) ;
719742
@@ -752,6 +775,7 @@ describe('useFilteredConnections', function () {
752775 filterRegex : new RegExp ( 'coll_ready_1_1' , 'i' ) ,
753776 fetchAllCollections : fetchAllCollectionsStub ,
754777 onDatabaseExpand : onDatabaseExpandStub ,
778+ excludeInactive : false ,
755779 } ,
756780 } ) ;
757781
0 commit comments