Skip to content

Commit abe616b

Browse files
cursoragentt3dotgg
andcommitted
Cover shell file-manager open path in runtime integration tests
Co-authored-by: Theo Browne <[email protected]>
1 parent b869dc6 commit abe616b

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
@@ -273,6 +273,32 @@ describe("runtimeApiServer", () => {
273273
client.socket.close();
274274
});
275275

276+
it("handles shell.openInEditor file-manager requests", async () => {
277+
const server = await startRuntimeApiServer({
278+
port: 0,
279+
launchCwd: process.cwd(),
280+
});
281+
servers.push(server);
282+
283+
const client = await connectClient(server.wsUrl);
284+
await client.nextMessage();
285+
286+
const response = await sendRequest(
287+
client.socket,
288+
client.nextMessage,
289+
"shell-open-fm-1",
290+
"shell.openInEditor",
291+
{
292+
cwd: process.cwd(),
293+
editor: "file-manager",
294+
},
295+
);
296+
expect(response.ok).toBe(true);
297+
expect(response.result).toBeNull();
298+
299+
client.socket.close();
300+
});
301+
276302
it("ignores malformed client messages and continues processing", async () => {
277303
const server = await startRuntimeApiServer({
278304
port: 0,

0 commit comments

Comments
 (0)