diff --git a/core/tools/implementations/runTerminalCommand.test.ts b/core/tools/implementations/runTerminalCommand.test.ts index 9ef39632b..e744ea4f1 100644 --- a/core/tools/implementations/runTerminalCommand.test.ts +++ b/core/tools/implementations/runTerminalCommand.test.ts @@ -415,7 +415,7 @@ describe("runTerminalCommandImpl", () => { delete process.env.USERPROFILE; process.cwd = jest.fn().mockImplementation(() => { throw new Error("Current directory unavailable"); - }); + }) as jest.MockedFunction<() => string>; // Create IDE mock with empty workspace const mockIde = {