Chore: fix alerting/unified/testSetup/plugins.ts
This commit is contained in:
@@ -1,8 +1,20 @@
|
||||
import { PluginLoadingStrategy, PluginMeta, PluginType } from '@grafana/data';
|
||||
import { AppPluginConfig, setPluginComponentsHook } from '@grafana/runtime';
|
||||
import { AppPluginConfig, setPluginComponentsHook, setPluginLinksHook } from '@grafana/runtime';
|
||||
import { SupportedPlugin } from 'app/features/alerting/unified/types/pluginBridges';
|
||||
|
||||
import { mockPluginLinkExtension } from '../mocks';
|
||||
|
||||
export function setupPluginsExtensionsHook() {
|
||||
setPluginLinksHook(() => ({
|
||||
links: plugins.map((plugin) =>
|
||||
mockPluginLinkExtension({
|
||||
pluginId: plugin.id,
|
||||
title: plugin.name,
|
||||
path: `/a/${plugin.id}`,
|
||||
})
|
||||
),
|
||||
isLoading: false,
|
||||
}));
|
||||
setPluginComponentsHook(() => ({
|
||||
components: [],
|
||||
isLoading: false,
|
||||
|
||||
Reference in New Issue
Block a user