Skip to content

Commit c6d1cee

Browse files
authored
Disable flakey tests (#4911)
1 parent db334c1 commit c6d1cee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/tools/__tests__/writeToFileTool.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,14 +243,14 @@ describe("writeToFileTool", () => {
243243
})
244244

245245
describe("file existence detection", () => {
246-
it("detects existing file and sets editType to modify", async () => {
246+
it.skipIf(process.platform === "win32")("detects existing file and sets editType to modify", async () => {
247247
await executeWriteFileTool({}, { fileExists: true })
248248

249249
expect(mockedFileExistsAtPath).toHaveBeenCalledWith(absoluteFilePath)
250250
expect(mockCline.diffViewProvider.editType).toBe("modify")
251251
})
252252

253-
it("detects new file and sets editType to create", async () => {
253+
it.skipIf(process.platform === "win32")("detects new file and sets editType to create", async () => {
254254
await executeWriteFileTool({}, { fileExists: false })
255255

256256
expect(mockedFileExistsAtPath).toHaveBeenCalledWith(absoluteFilePath)

0 commit comments

Comments
 (0)