Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test(dashboard): strengthen widgetRegistry invariant assertions
[._.]/ Adam Eivyf79612b2ea4b
diff --git a/client/src/components/dashboard/widgetRegistry.test.jsx b/client/src/components/dashboard/widgetRegistry.test.jsxindex 5eb4cbb0c1..827991a125 100644--- a/client/src/components/dashboard/widgetRegistry.test.jsx+++ b/client/src/components/dashboard/widgetRegistry.test.jsx@@ -11,18 +11,21 @@ describe('widgetRegistry', () => {expect(widget.id).toBeDefined();expect(widget.label).toBeDefined();expect(widget.Component).toBeDefined();- expect(widget.width).toBeDefined();+ expect(Object.keys(widgetRegistry.WIDTH_TO_COLS)).toContain(widget.width);expect(widgetRegistry.WIDGETS_BY_ID[widget.id]).toBe(widget);}});- it('exports FALLBACK_LAYOUT with expected shape', () => {+ it('exports FALLBACK_LAYOUT with expected shape and registered widgets', () => {expect(widgetRegistry.FALLBACK_LAYOUT).toEqual({id: '_fallback',name: 'Default (offline)',builtIn: true,widgets: ['apps', 'cos', 'upcoming-tasks', 'system-health'],});+ for (const id of widgetRegistry.FALLBACK_LAYOUT.widgets) {+ expect(widgetRegistry.WIDGETS_BY_ID[id]).toBeDefined();+ }});it('exports grid conversion constants', () => {