Skip to content

add runtime plugin#20

Merged
MonPote merged 4 commits intomasterfrom
improvement/add-runtime-plugin
Jan 26, 2026
Merged

add runtime plugin#20
MonPote merged 4 commits intomasterfrom
improvement/add-runtime-plugin

Conversation

@MonPote
Copy link
Copy Markdown
Collaborator

@MonPote MonPote commented Jan 22, 2026

No description provided.

@MonPote MonPote force-pushed the improvement/add-runtime-plugin branch from ed03c25 to ba9b9ac Compare January 23, 2026 15:17
@MonPote MonPote marked this pull request as ready for review January 23, 2026 15:24
Comment on lines +56 to +72
test('should override a nested string value using __ separator', () => {
process.env.MICRO_APP_RUNTIME_selfConfiguration__managementEndpoint = '/new/endpoint';

const plugin = new MicroAppRuntimeConfigurationPlugin(createDefaultConfig());
const config = getConfig(plugin);

expect(config.spec.selfConfiguration.managementEndpoint).toBe('/new/endpoint');
});

test('should override deeply nested values', () => {
process.env.MICRO_APP_RUNTIME_auth__clientId = 'new-client-id';

const plugin = new MicroAppRuntimeConfigurationPlugin(createDefaultConfig());
const config = getConfig(plugin);

expect(config.spec.auth.clientId).toBe('new-client-id');
});
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think those 2 tests are the same ones

@MonPote MonPote merged commit 03e3c7d into master Jan 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants