From 8f2e258849563e1d830d6cb6910a87ed0e0fb99f Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 9 Feb 2026 23:50:19 +0000 Subject: [PATCH] Assert hello launchCwd metadata in runtime test Co-authored-by: Theo Browne --- apps/t3/src/runtimeApiServer.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index 19087fcdc1..fe5d74f8c3 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -126,6 +126,10 @@ describe("runtimeApiServer", () => { const client = await connectClient(server.wsUrl); const hello = await client.nextMessage(); expect(hello.type).toBe("hello"); + if (hello.type !== "hello") { + throw new Error("Expected hello message."); + } + expect(hello.launchCwd).toBe(process.cwd()); const response = await sendRequest( client.socket,