chore: add test

Signed-off-by: ElaineDeMattosSilvaB <elaine.mattos@gmail.com>
This commit is contained in:
ElaineDeMattosSilvaB
2026-02-25 17:52:22 +01:00
parent 4a656e2a4b
commit a252e4d412
@@ -103,7 +103,10 @@ describe('createSpecializedApp', () => {
features: [
createFrontendPlugin({
pluginId: 'test',
featureFlags: [{ name: 'a' }, { name: 'b' }],
featureFlags: [
{ name: 'a' },
{ name: 'b', description: 'Feature B description' },
],
extensions: [
createExtension({
attachTo: { id: 'root', input: 'app' },
@@ -146,6 +149,11 @@ describe('createSpecializedApp', () => {
expect(screen.getByText('flags:test=a,test=b')).toBeInTheDocument();
expect(flags).toEqual([
{ name: 'a', pluginId: 'test' },
{ name: 'b', pluginId: 'test', description: 'Feature B description' },
]);
expect(app.apis).toMatchInlineSnapshot(`
ApiResolver {
"apis": Map {