|
1 | 1 | import deepmerge from 'deepmerge'; |
2 | | -import ConfigManager from '../../../src/page/managers/ConfigManager'; |
3 | | -import { type RecursivePartial } from '../../../src/shared/context/Utils'; |
| 2 | +import { DelayedPromptType } from 'src/shared/prompts/constants'; |
4 | 3 | import { |
| 4 | + getMergedConfig, |
5 | 5 | type AppConfig, |
6 | 6 | type AppUserConfig, |
7 | | - ConfigIntegrationKind, |
8 | 7 | type ConfigIntegrationKindValue, |
| 8 | + type ServerAppConfig, |
| 9 | +} from '../../../src/shared/config'; |
| 10 | +import { |
| 11 | + ConfigIntegrationKind, |
9 | 12 | NotificationClickActionBehavior, |
10 | 13 | NotificationClickMatchBehavior, |
11 | | - type ServerAppConfig, |
12 | | -} from '../../../src/shared/models/AppConfig'; |
13 | | -import { DelayedPromptType } from '../../../src/shared/models/Prompts'; |
| 14 | +} from '../../../src/shared/config/constants'; |
| 15 | +import type { RecursivePartial } from '../../../src/shared/context/Utils'; |
14 | 16 | import { APP_ID } from '../constants'; |
15 | | -import { type TestEnvironmentConfig } from './TestEnvironment'; |
| 17 | +import type { TestEnvironmentConfig } from './TestEnvironment'; |
16 | 18 |
|
17 | 19 | export default class TestContext { |
18 | 20 | static getFakeServerAppConfig( |
@@ -462,11 +464,7 @@ export default class TestContext { |
462 | 464 | config.integration || ConfigIntegrationKind.Custom, |
463 | 465 | config.overrideServerConfig, |
464 | 466 | ); |
465 | | - const configManager = new ConfigManager(); |
466 | | - const fakeMergedConfig = configManager.getMergedConfig( |
467 | | - fakeUserConfig, |
468 | | - fakeServerConfig, |
469 | | - ); |
| 467 | + const fakeMergedConfig = getMergedConfig(fakeUserConfig, fakeServerConfig); |
470 | 468 | return fakeMergedConfig; |
471 | 469 | } |
472 | 470 | } |
0 commit comments