mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Remove any generics from configureMockStore in tests (#51179)
This commit is contained in:
parent
98132fc7dc
commit
357b859fa7
@ -24,7 +24,7 @@ import { dataOverrideTooltipDescription, overrideRuleTooltipDescription } from '
|
||||
standardEditorsRegistry.setInit(getAllOptionEditors);
|
||||
standardFieldConfigEditorRegistry.setInit(getAllStandardFieldConfigs);
|
||||
|
||||
const mockStore = configureMockStore<any, any>();
|
||||
const mockStore = configureMockStore();
|
||||
const OptionsPaneSelector = selectors.components.PanelEditor.OptionsPane;
|
||||
jest.mock('react-router-dom', () => ({
|
||||
...jest.requireActual('react-router-dom'),
|
||||
|
@ -19,7 +19,7 @@ jest.mock('app/core/profiler', () => ({
|
||||
}));
|
||||
|
||||
function setupTestContext(options: Partial<Props>) {
|
||||
const mockStore = configureMockStore<any, any>();
|
||||
const mockStore = configureMockStore();
|
||||
const store = mockStore({ dashboard: { panels: [] } });
|
||||
const subject: ReplaySubject<PanelData> = new ReplaySubject<PanelData>();
|
||||
const panelQueryRunner = {
|
||||
|
@ -18,7 +18,7 @@ jest.mock('@grafana/runtime', () => {
|
||||
};
|
||||
});
|
||||
|
||||
const mockStore = configureMockStore<any, any>();
|
||||
const mockStore = configureMockStore();
|
||||
|
||||
setStore(
|
||||
mockStore({
|
||||
|
@ -33,7 +33,7 @@ describe('ManageActions', () => {
|
||||
mockItemsSelected.set('dashboard', mockDashboardsUIDsSelected);
|
||||
|
||||
//Mock store redux for old MoveDashboards state action
|
||||
const mockStore = configureMockStore<any, any>();
|
||||
const mockStore = configureMockStore();
|
||||
const store = mockStore({ dashboard: { panels: [] } });
|
||||
|
||||
const onChange = jest.fn();
|
||||
@ -77,7 +77,7 @@ describe('ManageActions', () => {
|
||||
mockItemsSelected.set('dashboard', mockDashboardsUIDsSelected);
|
||||
|
||||
//Mock store
|
||||
const mockStore = configureMockStore<any, any>();
|
||||
const mockStore = configureMockStore();
|
||||
const store = mockStore({ dashboard: { panels: [] } });
|
||||
|
||||
const onChange = jest.fn();
|
||||
@ -102,7 +102,7 @@ describe('ManageActions', () => {
|
||||
mockItemsSelected.set('folder', mockFolderUIDSelected);
|
||||
|
||||
//Mock store
|
||||
const mockStore = configureMockStore<any, any>();
|
||||
const mockStore = configureMockStore();
|
||||
const store = mockStore({ dashboard: { panels: [] } });
|
||||
|
||||
const onChange = jest.fn();
|
||||
|
@ -19,7 +19,7 @@ describe('MoveToFolderModal', () => {
|
||||
dashboardsUIDs.add('uid2');
|
||||
items.set('dashboard', dashboardsUIDs);
|
||||
const isMoveModalOpen = true;
|
||||
const mockStore = configureMockStore<any, any>();
|
||||
const mockStore = configureMockStore();
|
||||
const store = mockStore({ dashboard: { panels: [] } });
|
||||
const onMoveItems = jest.fn();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user