Remove any generics from configureMockStore in tests (#51179)

This commit is contained in:
Josh Hunt 2022-06-21 17:48:52 +01:00 committed by GitHub
parent 98132fc7dc
commit 357b859fa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -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'),

View File

@ -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 = {

View File

@ -18,7 +18,7 @@ jest.mock('@grafana/runtime', () => {
};
});
const mockStore = configureMockStore<any, any>();
const mockStore = configureMockStore();
setStore(
mockStore({

View File

@ -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();

View File

@ -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();