Fix PanelOptionsTest

This commit is contained in:
Dominik Prokop
2024-04-09 23:35:31 +02:00
parent d14eeb8417
commit ec17982eff
@@ -22,6 +22,13 @@ jest.mock('react-router-dom', () => ({
}),
}));
jest.mock('@grafana/runtime', () => ({
...jest.requireActual('@grafana/runtime'),
getPluginImportUtils: () => ({
getPanelPluginFromCache: jest.fn(),
}),
}));
// Needed when the panel is not part of an DashboardScene
jest.spyOn(utils, 'getDashboardSceneFor').mockReturnValue(new DashboardScene({}));