From 5540f0c7f8cec22b43265a3b431752be91475ddc Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 31 Jul 2026 16:14:19 +0800 Subject: [PATCH] test(testing): guard realtime relay smoke module path --- test/scripts/dev-tooling-safety.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/scripts/dev-tooling-safety.test.ts b/test/scripts/dev-tooling-safety.test.ts index 47edc59afe1d..f3b2d62d8cc9 100644 --- a/test/scripts/dev-tooling-safety.test.ts +++ b/test/scripts/dev-tooling-safety.test.ts @@ -699,6 +699,13 @@ describe("script-specific dev tooling hardening", () => { expect(realtimeSmokeTesting.transcriptIncludesMarker(["ocean"], "glacier")).toBe(false); }); + it("resolves the realtime relay smoke to an existing Control UI module", () => { + const modulePath = realtimeSmokeTesting.resolveGatewayRelayModulePath(process.cwd()); + + expect(modulePath.endsWith("/ui/src/pages/chat/realtime-talk-gateway-relay.ts")).toBe(true); + expect(existsSync(modulePath.slice("/@fs/".length))).toBe(true); + }); + it("bounds OpenAI realtime smoke response body reads by content-length", async () => { const maxBytes = realtimeSmokeTesting.OPENAI_HTTP_RESPONSE_MAX_BYTES; const response = new Response("{}", {