diff --git a/src/tools/runTerminalCommand.test.ts b/src/tools/runTerminalCommand.test.ts index 9266000aa..7b037c802 100644 --- a/src/tools/runTerminalCommand.test.ts +++ b/src/tools/runTerminalCommand.test.ts @@ -22,10 +22,18 @@ describe("runTerminalCommandTool", () => { expect(result.trim()).toMatch(/^\/.*$/); // Should be an absolute path }); - it("should execute ls command and return file listings", async () => { - const result = await runTerminalCommandTool.run({ command: "ls -la ." }); - expect(result).toContain("."); - expect(result).toContain(".."); + it("should execute directory listing command and return file listings", async () => { + // Use a cross-platform command that works on both Unix and Windows + const command = process.platform === 'win32' ? 'dir' : 'ls -la .'; + const result = await runTerminalCommandTool.run({ command }); + + // On Windows, look for