chore: fix tests for realsies
This commit is contained in:
@@ -121,11 +121,6 @@ jest.mock('@grafana/runtime', () => ({
|
||||
getInstanceSettings: () => {},
|
||||
}),
|
||||
usePluginLinks: jest.fn(() => ({ links: [] })),
|
||||
config: {
|
||||
featureToggles: {
|
||||
correlationsExploreEditor: false,
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
jest.mock('app/core/services/context_srv', () => ({
|
||||
|
||||
@@ -3,6 +3,7 @@ import { useEffect } from 'react';
|
||||
|
||||
import { GrafanaTheme2 } from '@grafana/data';
|
||||
import { t, Trans } from '@grafana/i18n';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { ErrorBoundaryAlert, LoadingPlaceholder, useStyles2, useTheme2 } from '@grafana/ui';
|
||||
import { SplitPaneWrapper } from 'app/core/components/SplitPaneWrapper/SplitPaneWrapper';
|
||||
import { useGrafana } from 'app/core/context/GrafanaContext';
|
||||
|
||||
@@ -12,11 +12,6 @@ const testEventBus = new EventBusSrv();
|
||||
jest.mock('@grafana/runtime', () => ({
|
||||
...jest.requireActual('@grafana/runtime'),
|
||||
getAppEvents: () => testEventBus,
|
||||
config: {
|
||||
featureToggles: {
|
||||
correlationsExploreEditor: false,
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
jest.mock('react-virtualized-auto-sizer', () => {
|
||||
|
||||
@@ -13,11 +13,6 @@ const testEventBus = new EventBusSrv();
|
||||
jest.mock('@grafana/runtime', () => ({
|
||||
...jest.requireActual('@grafana/runtime'),
|
||||
getAppEvents: () => testEventBus,
|
||||
config: {
|
||||
featureToggles: {
|
||||
correlationsExploreEditor: false,
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
jest.mock('app/core/services/context_srv', () => ({
|
||||
|
||||
@@ -11,11 +11,6 @@ const testEventBus = new EventBusSrv();
|
||||
jest.mock('@grafana/runtime', () => ({
|
||||
...jest.requireActual('@grafana/runtime'),
|
||||
getAppEvents: () => testEventBus,
|
||||
config: {
|
||||
featureToggles: {
|
||||
correlationsExploreEditor: false,
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
jest.mock('react-virtualized-auto-sizer', () => {
|
||||
|
||||
@@ -48,11 +48,6 @@ jest.mock('@grafana/runtime', () => ({
|
||||
},
|
||||
getAppEvents: () => testEventBus,
|
||||
usePluginLinks: jest.fn().mockReturnValue({ links: [] }),
|
||||
config: {
|
||||
featureToggles: {
|
||||
correlationsExploreEditor: false,
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
jest.mock('app/core/services/context_srv', () => ({
|
||||
|
||||
@@ -43,11 +43,6 @@ jest.mock('react-virtualized-auto-sizer', () => {
|
||||
jest.mock('@grafana/runtime', () => ({
|
||||
...jest.requireActual('@grafana/runtime'),
|
||||
getAppEvents: () => testEventBus,
|
||||
config: {
|
||||
featureToggles: {
|
||||
correlationsExploreEditor: false,
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
jest.mock('../hooks/useExplorePageTitle', () => ({
|
||||
|
||||
Reference in New Issue
Block a user