diff --git a/services/config/src/__tests__/integration.test.tsx b/services/config/src/__tests__/integration.test.tsx index 04517f387..959efd070 100644 --- a/services/config/src/__tests__/integration.test.tsx +++ b/services/config/src/__tests__/integration.test.tsx @@ -8,6 +8,16 @@ import { ConfigContext } from '../ConfigContext' const mockConfig: Config = { baseUrl: 'http://test.com', apiVersion: 42, + serverVersion: { + major: 2, + minor: 35, + patch: undefined, + tag: 'SNAPSHOT', + }, + systemInfo: { + contextPath: 'http://localhost:3000', + version: '2.35-SNAPSHOT', + }, } describe('Testing custom config provider', () => { diff --git a/services/config/src/types.ts b/services/config/src/types.ts index f631ea061..92d5458c2 100644 --- a/services/config/src/types.ts +++ b/services/config/src/types.ts @@ -1,4 +1,18 @@ +type ServerVersion = { + major: number + minor: number + patch?: number + tag?: string +} + +interface SystemInfo { + version: string + contextPath: string +} + export interface Config { baseUrl: string apiVersion: number + serverVersion?: ServerVersion + systemInfo?: SystemInfo }