fix(config): resolve remote hierarchy in memory for every profile
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { remoteFixture } from '../../fixtures/remote-config.ts';
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { BUILD_IDENTITY } from '../../../YouleNexus/assets/framework/config/sources/defaults.ts';
|
||||
@@ -7,7 +8,7 @@ import { LOCAL_MACHINE_KEY, localAccountKey, type LocalStoragePort } from '../..
|
||||
import { createLocalLoginSources, type LocalHostSnapshot } from '../../../YouleNexus/assets/framework/adapters/local/login-sources.ts';
|
||||
|
||||
const context: LocalStartupContext = { hostKind: 'h5', profile: 'local', config: {
|
||||
mode: 'debug', isDebugger: true, source: 'direct', gameserver: null, rawConfig: null,
|
||||
mode: 'debug', isDebugger: true, source: 'remote', gameserver: PROFILES.local!.gameserver, ...remoteFixture(),
|
||||
servers: PROFILES.local!.servers!, identity: BUILD_IDENTITY,
|
||||
} };
|
||||
class MapStorage implements LocalStoragePort {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { remoteFixture } from '../../fixtures/remote-config.ts';
|
||||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { BUILD_IDENTITY } from '../../../YouleNexus/assets/framework/config/sources/defaults.ts';
|
||||
@@ -15,7 +16,7 @@ class MapStorage implements LocalStoragePort {
|
||||
|
||||
function context(overrides: Partial<typeof BUILD_IDENTITY> = {}): LocalStartupContext {
|
||||
return { hostKind: 'h5', profile: 'local', config: {
|
||||
mode: 'debug', isDebugger: true, source: 'direct', gameserver: null, rawConfig: null,
|
||||
mode: 'debug', isDebugger: true, source: 'remote', gameserver: PROFILES.local!.gameserver, ...remoteFixture(),
|
||||
servers: PROFILES.local!.servers!, identity: { ...BUILD_IDENTITY, ...overrides },
|
||||
} };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user