10 lines
607 B
TypeScript
10 lines
607 B
TypeScript
import { BUILD_IDENTITY } from '../../YouleNexus/assets/framework/config/sources/defaults.ts';
|
|
import { createRemoteConfig } from '../../YouleNexus/assets/framework/config/remote-config.ts';
|
|
import type { ChannelIdentity } from '../../YouleNexus/assets/framework/config/identity.ts';
|
|
|
|
/** Test-only memory configuration shared by typed RuntimeConfig fixtures. */
|
|
export function remoteFixture(identity: Readonly<ChannelIdentity> = BUILD_IDENTITY) {
|
|
const remoteConfig = createRemoteConfig({ player_server_tcp: 'fixture.example:3088' }, identity);
|
|
return { remoteConfig, rawConfig: remoteConfig.raw };
|
|
}
|