From e20ff99631bb5f3eb59b0ad6062a3461fc589b5d Mon Sep 17 00:00:00 2001 From: ciregenz Date: Thu, 3 Sep 2026 17:24:17 -0700 Subject: [PATCH] [eric] tests: serve mode's URL is the bundle server's root, not the deep serve route Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01C9zwUaHucUgrdxvK8FvjYT --- backend/tests/test_serve_static_mode.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/tests/test_serve_static_mode.py b/backend/tests/test_serve_static_mode.py index fe0b7f0e..eeeaa7a8 100644 --- a/backend/tests/test_serve_static_mode.py +++ b/backend/tests/test_serve_static_mode.py @@ -41,7 +41,11 @@ def test_start_serves_static_when_not_edited(tmp_path, monkeypatch): rt = AppRuntime("ws-t", ws) assert asyncio.run(rt.start()) is True assert rt.serve_static is True and rt.process is None and rt.ready is True - assert "/serve/frontend/dist/index.html" in (rt.frontend_url or "") + # The app lives at the root of its own loopback server, the shape vite gives it (ENG-458: a deep path left React Router apps blank). + import re as p_re + assert p_re.fullmatch(r"http://127\.0\.0\.1:\d+/", rt.frontend_url or ""), rt.frontend_url + asyncio.run(rt.stop()) + assert rt.frontend_url is None, "stop() must drop the bundle server with the URL" def test_start_skips_serve_when_edited(tmp_path, monkeypatch):