Disable flakey tests (#4911)

This commit is contained in:
Chris Estreich 2025-06-19 18:39:39 -07:00 committed by GitHub
parent db334c182f
commit c6d1cee448
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)