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
fix(tests): flush MoodBoard picker mount work (#4720)
[._.]/ Adam Eivyb61036ac0ff7
diff --git a/client/src/pages/MoodBoardDetail.test.jsx b/client/src/pages/MoodBoardDetail.test.jsxindex a552c703bf..7468db84e3 100644--- a/client/src/pages/MoodBoardDetail.test.jsx+++ b/client/src/pages/MoodBoardDetail.test.jsx@@ -1,6 +1,6 @@import { StrictMode } from 'react';import { describe, it, expect, vi, beforeEach } from 'vitest';-import { render, screen, waitFor, fireEvent } from '@testing-library/react';+import { render, screen, waitFor, fireEvent, act } from '@testing-library/react';import { MemoryRouter } from 'react-router';// ── Mocks must be declared before any imports that use them ──────────────────@@ -106,6 +106,9 @@ describe('MoodBoardDetail stale-response guards', () => {.mockReturnValueOnce(second.promise); // board 'b'const { rerender } = renderPage();+ // GalleryImagePicker has mount work even while closed. Flush it before+ // changing boards so its state cannot settle after this test finishes.+ await act(async () => {});// The user navigates to board 'b' before board 'a' has resolved.currentId = 'b';rerender(<MemoryRouter><MoodBoardDetail /></MemoryRouter>);