Skip to content

Commit a9fbb00

Browse files
cursoragentt3dotgg
andcommitted
Cover shell cursor open path in runtime integration tests
Co-authored-by: Theo Browne <t3dotgg@users.noreply.github.com>
1 parent 9c3b44e commit a9fbb00

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

‎apps/t3/src/runtimeApiServer.test.ts‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,32 @@ describe("runtimeApiServer", () => {
299299
client.socket.close();
300300
});
301301

302+
it("handles shell.openInEditor cursor requests", async () => {
303+
const server = await startRuntimeApiServer({
304+
port: 0,
305+
launchCwd: process.cwd(),
306+
});
307+
servers.push(server);
308+
309+
const client = await connectClient(server.wsUrl);
310+
await client.nextMessage();
311+
312+
const response = await sendRequest(
313+
client.socket,
314+
client.nextMessage,
315+
"shell-open-cursor-1",
316+
"shell.openInEditor",
317+
{
318+
cwd: process.cwd(),
319+
editor: "cursor",
320+
},
321+
);
322+
expect(response.ok).toBe(true);
323+
expect(response.result).toBeNull();
324+
325+
client.socket.close();
326+
});
327+
302328
it("responds to dialogs.pickFolder requests", async () => {
303329
const server = await startRuntimeApiServer({
304330
port: 0,

0 commit comments

Comments
 (0)