From 732e00e727c46dbe410d90fdfc9d4d69118045e8 Mon Sep 17 00:00:00 2001 From: Christiane Heiligers Date: Fri, 8 Jul 2022 19:18:51 -0700 Subject: [PATCH] Updates mock imports --- src/core/server/mocks.ts | 3 +-- src/core/server/server.test.mocks.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/server/mocks.ts b/src/core/server/mocks.ts index f224ff76418ab..2d8d34be93e5c 100644 --- a/src/core/server/mocks.ts +++ b/src/core/server/mocks.ts @@ -17,6 +17,7 @@ import { analyticsServiceMock } from '@kbn/core-analytics-server-mocks'; import { environmentServiceMock } from '@kbn/core-environment-server-mocks'; import { nodeServiceMock } from '@kbn/core-node-server-mocks'; import { executionContextServiceMock } from '@kbn/core-execution-context-server-mocks'; +import { prebootServiceMock } from '@kbn/core-preboot-server-mocks'; import type { PluginInitializerContext, CoreSetup, @@ -41,8 +42,6 @@ import { statusServiceMock } from './status/status_service.mock'; import { coreUsageDataServiceMock } from './core_usage_data/core_usage_data_service.mock'; import { i18nServiceMock } from './i18n/i18n_service.mock'; import { deprecationsServiceMock } from './deprecations/deprecations_service.mock'; -import { prebootServiceMock } from './preboot/preboot_service.mock'; - export { configServiceMock, configDeprecationsMock } from '@kbn/config-mocks'; export { loggingSystemMock } from '@kbn/core-logging-server-mocks'; export { httpServerMock } from './http/http_server.mocks'; diff --git a/src/core/server/server.test.mocks.ts b/src/core/server/server.test.mocks.ts index d9c52c4e6d0fa..16f2fb3d2e1df 100644 --- a/src/core/server/server.test.mocks.ts +++ b/src/core/server/server.test.mocks.ts @@ -110,7 +110,7 @@ jest.doMock('./i18n/i18n_service', () => ({ I18nService: jest.fn(() => mockI18nService), })); -import { prebootServiceMock } from './preboot/preboot_service.mock'; +import { prebootServiceMock } from '@kbn/core-preboot-server-mocks'; export const mockPrebootService = prebootServiceMock.create(); jest.doMock('@kbn/core-preboot-server-internal', () => ({