diff --git a/x-pack/plugins/fleet/.storybook/context/stubs.tsx b/x-pack/plugins/fleet/.storybook/context/stubs.tsx index 42041abe8f3eab..65485a31d376ac 100644 --- a/x-pack/plugins/fleet/.storybook/context/stubs.tsx +++ b/x-pack/plugins/fleet/.storybook/context/stubs.tsx @@ -8,6 +8,7 @@ import type { FleetStartServices } from '../../public/plugin'; type Stubs = + | 'licensing' | 'storage' | 'data' | 'fieldFormats' @@ -20,6 +21,7 @@ type Stubs = type StubbedStartServices = Pick; export const stubbedStartServices: StubbedStartServices = { + licensing: {} as FleetStartServices['licensing'], storage: {} as FleetStartServices['storage'], data: {} as FleetStartServices['data'], fieldFormats: {} as FleetStartServices['fieldFormats'], diff --git a/x-pack/plugins/fleet/public/mock/plugin_dependencies.ts b/x-pack/plugins/fleet/public/mock/plugin_dependencies.ts index 3eada9079a7734..2545e63709765d 100644 --- a/x-pack/plugins/fleet/public/mock/plugin_dependencies.ts +++ b/x-pack/plugins/fleet/public/mock/plugin_dependencies.ts @@ -17,7 +17,6 @@ import { fieldFormatsServiceMock } from '../../../../../src/plugins/field_format export const createSetupDepsMock = () => { const cloud = cloudMock.createSetup(); return { - licensing: licensingMock.createSetup(), data: dataPluginMock.createSetupContract(), home: homePluginMock.createSetupContract(), customIntegrations: customIntegrationsMock.createSetup(), @@ -27,6 +26,7 @@ export const createSetupDepsMock = () => { export const createStartDepsMock = () => { return { + licensing: licensingMock.createStart(), data: dataPluginMock.createStartContract(), fieldFormats: fieldFormatsServiceMock.createStartContract() as any, navigation: navigationPluginMock.createStartContract(),