@@ -45,10 +45,7 @@ import {
4545 ReadOnlyPreferenceAccess ,
4646} from 'compass-preferences-model/provider' ;
4747import { TelemetryProvider } from '@mongodb-js/compass-telemetry/provider' ;
48- import {
49- CompassComponentsProvider ,
50- ContextMenuProvider ,
51- } from '@mongodb-js/compass-components' ;
48+ import { CompassComponentsProvider } from '@mongodb-js/compass-components' ;
5249import {
5350 TestEnvCurrentConnectionContext ,
5451 ConnectionInfoProvider ,
@@ -352,43 +349,41 @@ function createWrapper(
352349 < PreferencesProvider value = { wrapperState . preferences } >
353350 < LoggerProvider value = { logger } >
354351 < TelemetryProvider options = { telemetryOptions } >
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 >
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 >
392387 </ TelemetryProvider >
393388 </ LoggerProvider >
394389 </ PreferencesProvider >
@@ -756,11 +751,6 @@ function createPluginTestHelpers<
756751 */
757752const fireEvent = testingLibraryFireEvent ;
758753
759- /**
760- * @deprecated @testing -library/react installs these hooks automatically
761- */
762- const cleanup = rtlCleanup ;
763-
764754/**
765755 * @deprecated @testing -library/react-hooks installs these hooks automatically
766756 */
0 commit comments