Test ws adapter handling of hello prelude messages

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-09 23:18:11 +00:00
1 parent d4bd385419
commit 0cf6572336
1 file changed
+7
+7
View File
@@ -103,6 +103,13 @@ describe("wsNativeApi", () => {
expect(requestEnvelope.type).toBe("request");
expect(requestEnvelope.method).toBe("todos.list");
socket?.emitMessage(
JSON.stringify({
type: "hello",
version: 1,
launchCwd: "/workspace",
}),
);
socket?.emitMessage(
JSON.stringify({
type: "response",