mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Remove as any from requireActual usage (#51182)
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
|
||||
|
||||
@@ -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(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user