diff --git a/src/core/tools/__tests__/writeToFileTool.spec.ts b/src/core/tools/__tests__/writeToFileTool.spec.ts index 47a674cdfb..f223d4b0fc 100644 --- a/src/core/tools/__tests__/writeToFileTool.spec.ts +++ b/src/core/tools/__tests__/writeToFileTool.spec.ts @@ -243,14 +243,14 @@ describe("writeToFileTool", () => { }) describe("file existence detection", () => { - it("detects existing file and sets editType to modify", async () => { + it.skipIf(process.platform === "win32")("detects existing file and sets editType to modify", async () => { await executeWriteFileTool({}, { fileExists: true }) expect(mockedFileExistsAtPath).toHaveBeenCalledWith(absoluteFilePath) expect(mockCline.diffViewProvider.editType).toBe("modify") }) - it("detects new file and sets editType to create", async () => { + it.skipIf(process.platform === "win32")("detects new file and sets editType to create", async () => { await executeWriteFileTool({}, { fileExists: false }) expect(mockedFileExistsAtPath).toHaveBeenCalledWith(absoluteFilePath)