From 95dcc02ecfce7a9fcfae601f0a15b76dad5fc450 Mon Sep 17 00:00:00 2001 From: cte Date: Thu, 19 Jun 2025 18:23:16 -0700 Subject: [PATCH] Disable flakey tests --- src/core/tools/__tests__/writeToFileTool.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)