@@ -45,7 +45,10 @@ import {
4545 ReadOnlyPreferenceAccess ,
4646} from 'compass-preferences-model/provider' ;
4747import { TelemetryProvider } from '@mongodb-js/compass-telemetry/provider' ;
48- import { CompassComponentsProvider } from '@mongodb-js/compass-components' ;
48+ import {
49+ CompassComponentsProvider ,
50+ ContextMenuProvider ,
51+ } from '@mongodb-js/compass-components' ;
4952import {
5053 TestEnvCurrentConnectionContext ,
5154 ConnectionInfoProvider ,
@@ -349,41 +352,43 @@ function createWrapper(
349352 < PreferencesProvider value = { wrapperState . preferences } >
350353 < LoggerProvider value = { logger } >
351354 < TelemetryProvider options = { telemetryOptions } >
352- < ConnectionStorageProvider
353- value = { wrapperState . connectionStorage }
354- >
355- < ConnectFnProvider connect = { wrapperState . connect } >
356- < CompassConnections
357- appName = { options . appName ?? 'TEST' }
358- onFailToLoadConnections = {
359- options . onFailToLoadConnections ??
360- ( ( ) => {
361- // noop
362- } )
363- }
364- onExtraConnectionDataRequest = {
365- options . onExtraConnectionDataRequest ??
366- ( ( ) => {
367- return Promise . resolve ( [ { } , null ] as [ any , null ] ) ;
368- } )
369- }
370- onAutoconnectInfoRequest = {
371- options . onAutoconnectInfoRequest
372- }
373- preloadStorageConnectionInfos = { connections }
374- >
375- < StoreGetter >
376- < TestEnvCurrentConnectionContext . Provider
377- value = { TEST_ENV_CURRENT_CONNECTION }
378- >
379- < TestingLibraryWrapper { ...props } >
380- { children }
381- </ TestingLibraryWrapper >
382- </ TestEnvCurrentConnectionContext . Provider >
383- </ StoreGetter >
384- </ CompassConnections >
385- </ ConnectFnProvider >
386- </ ConnectionStorageProvider >
355+ < ContextMenuProvider >
356+ < ConnectionStorageProvider
357+ value = { wrapperState . connectionStorage }
358+ >
359+ < ConnectFnProvider connect = { wrapperState . connect } >
360+ < CompassConnections
361+ appName = { options . appName ?? 'TEST' }
362+ onFailToLoadConnections = {
363+ options . onFailToLoadConnections ??
364+ ( ( ) => {
365+ // noop
366+ } )
367+ }
368+ onExtraConnectionDataRequest = {
369+ options . onExtraConnectionDataRequest ??
370+ ( ( ) => {
371+ return Promise . resolve ( [ { } , null ] as [ any , null ] ) ;
372+ } )
373+ }
374+ onAutoconnectInfoRequest = {
375+ options . onAutoconnectInfoRequest
376+ }
377+ preloadStorageConnectionInfos = { connections }
378+ >
379+ < StoreGetter >
380+ < TestEnvCurrentConnectionContext . Provider
381+ value = { TEST_ENV_CURRENT_CONNECTION }
382+ >
383+ < TestingLibraryWrapper { ...props } >
384+ { children }
385+ </ TestingLibraryWrapper >
386+ </ TestEnvCurrentConnectionContext . Provider >
387+ </ StoreGetter >
388+ </ CompassConnections >
389+ </ ConnectFnProvider >
390+ </ ConnectionStorageProvider >
391+ </ ContextMenuProvider >
387392 </ TelemetryProvider >
388393 </ LoggerProvider >
389394 </ PreferencesProvider >
0 commit comments