Remove as any from requireActual usage (#51182)

This commit is contained in:
Josh Hunt
2022-06-21 17:48:38 +01:00
committed by GitHub
parent 53d03aec78
commit 98132fc7dc
16 changed files with 17 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ import { PanelQueryRunner } from './PanelQueryRunner';
jest.mock('@grafana/data', () => ({
__esModule: true,
...(jest.requireActual('@grafana/data') as any),
...jest.requireActual('@grafana/data'),
applyFieldOverrides: applyFieldOverridesMock,
}));

View File

@@ -28,7 +28,7 @@ jest.mock('app/features/dashboard/services/DashboardSrv', () => ({
}));
jest.mock('@grafana/runtime', () => ({
...(jest.requireActual('@grafana/runtime') as any),
...jest.requireActual('@grafana/runtime'),
reportMetaAnalytics: jest.fn(),
}));
@@ -36,7 +36,7 @@ const mockGetUrlSearchParams = jest.fn(() => {
return {};
});
jest.mock('@grafana/data', () => ({
...(jest.requireActual('@grafana/data') as any),
...jest.requireActual('@grafana/data'),
urlUtil: {
getUrlSearchParams: () => mockGetUrlSearchParams(),
},