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: keep browser-test Vite fixtures static so unrelated edits cannot remount the page (#12230)
[._.]/ Adam Eivy5fc786732af4
diff --git a/client/src/test/browserFixture.js b/client/src/test/browserFixture.jsindex a99c01d934..d8f6a3b18c 100644--- a/client/src/test/browserFixture.js+++ b/client/src/test/browserFixture.js@@ -328,7 +328,11 @@ export async function startBrowserFixture({if (!config.optimizeDeps?.entries?.length) {throw new Error('viteConfig must set optimizeDeps.entries to the rendered source files, or Vite scans the whole app');}- const vite = await createServer(config);+ // The fixture serves a static synthetic page. A file change elsewhere in+ // the shared client tree (other suites, an editor, a sibling agent) must+ // not push an HMR update or full reload that remounts the page mid-test+ // (#12230), so the watcher and HMR channel are off for every fixture.+ const vite = await createServer({ ...config, server: { ...config.server, watch: null, hmr: false } });own(() => vite.close(), 'Vite server');// A server that arrives after the deadline was just closed by own();// listening would bind a port nothing closes.diff --git a/client/src/test/browserFixture.test.js b/client/src/test/browserFixture.test.jsindex 1940511508..9c46ba2e1a 100644--- a/client/src/test/browserFixture.test.js+++ b/client/src/test/browserFixture.test.js@@ -100,6 +100,16 @@ describe('startBrowserFixture', () => {});});+ it('serves a static page: file watching and HMR stay off so unrelated edits cannot remount it (#12230)', async () => {+ const { createServer } = fakeVite();+ const chromium = { launch: vi.fn().mockResolvedValue(fakeBrowser()) };+ vi.spyOn(console, 'log').mockImplementation(() => {});+ const fixture = await startBrowserFixture({ name: 'example', createServer, chromium, phaseMs: PHASE_MS,+ viteConfig: () => ({ ...SCOPED, server: { host: '127.0.0.1', port: 0 } }) });+ expect(createServer.mock.calls[0][0].server).toEqual({ host: '127.0.0.1', port: 0, watch: null, hmr: false });+ await fixture.close();+ });+it('uses the retried launch and closes the first one when it arrives late', async () => {const { server, createServer } = fakeVite();const stalled = fakeBrowser();