import { REPO_ROOT } from '@osd/dev-utils' ; import { CoreContext } from './core_context' ; import { Env , IConfigService } from './config' ; import { configServiceMock , getEnvOptions } from './config/mocks' ; import { loggingSystemMock } from './logging/logging_system.mock' ; import { ILoggingSystem } from './logging' ; function create ( { env = Env . createDefault ( REPO_ROOT , getEnvOptions ( ) ) , logger = loggingSystemMock . create ( ) , configService = configServiceMock . create ( ) , } = { } ) { return { coreId : Symbol ( ) , env , logger , configService } ; } export const mockCoreContext = { create , } ;