feat(config): unify startup mode and server selection

This commit is contained in:
2026-09-05 22:52:14 +08:00
parent 239af0aa39
commit facceeae9b
26 changed files with 204 additions and 240 deletions
@@ -1,3 +1,4 @@
import { STARTUP_CONFIG } from '../../YouleNexus/assets/framework/config/profiles.ts';
import { remoteFixture } from '../fixtures/remote-config.ts';
import { test } from 'node:test';
import assert from 'node:assert/strict';
@@ -11,11 +12,11 @@ const IDENTITY = { agentid: 'A', channelid: 'C', gameid: 'G', marketid: 4, versi
function bootstrapOf(): BootstrapResult {
return {
mode: 'debug', isDebugger: true,
startupConfig: STARTUP_CONFIG, mode: 'debug', isDebugger: true,
identity: IDENTITY,
servers: ['ws://test'],
...remoteFixture(),
profile: { name: 'debug' },
profile: { name: 'local' },
};
}