diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index deb61a5c4d..c5f733c337 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -2102,6 +2102,14 @@ async function main() { ws.send("not-json"); ws.send(JSON.stringify({ foo: "bar" })); + ws.send( + JSON.stringify({ + type: "request", + id: "smoke-malformed-extra-field", + method: "app.health", + unexpected: true, + }), + ); const postMalformedHealthResponse = await sendWsRequest(ws, { id: "smoke-health-after-malformed", method: "app.health", diff --git a/apps/t3/src/runtimeApiServer.test.ts b/apps/t3/src/runtimeApiServer.test.ts index ba07fad0ad..082c46a78f 100644 --- a/apps/t3/src/runtimeApiServer.test.ts +++ b/apps/t3/src/runtimeApiServer.test.ts @@ -748,6 +748,14 @@ describe("runtimeApiServer", () => { client.socket.send("not-json"); client.socket.send(JSON.stringify({ type: "request", id: "", method: "" })); + client.socket.send( + JSON.stringify({ + type: "request", + id: "malformed-extra-field", + method: "todos.list", + unexpected: true, + }), + ); const response = await sendRequest( client.socket,