From 4578a86aec5b6f2c893484f5ac65f3365adc58d3 Mon Sep 17 00:00:00 2001 From: leemour Date: Tue, 24 Nov 2026 23:01:21 +0100 Subject: [PATCH] test(files): skip the shared file-mode case on Windows, which has no POSIX modes The 0.27.0 release stopped on windows-latest: cli-core's crmFilesContract asserts 0600 on a saved file there too, and Windows reports 0666. Only that case is skipped on Windows; the fix belongs in cli-core's contract. Co-Authored-By: Claude Opus 5.5 --- src/crm/files.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crm/files.test.ts b/src/crm/files.test.ts index f7d678b..a014866 100644 --- a/src/crm/files.test.ts +++ b/src/crm/files.test.ts @@ -30,6 +30,7 @@ const portalWithFiles = () => { const read = async (stream: ReadableStream) => new Response(stream).text() describe("crmFilesContract over the fake portal", () => { + // Windows has no POSIX modes, and cli-core's contract asserts 0600 and 0700 there too (cli-core fix pending). for (const { name, run } of crmFilesContract(() => { const { source, own, theirs } = portalWithFiles() return { @@ -41,7 +42,7 @@ describe("crmFilesContract over the fake portal", () => { refused: [`deal:${own}:comment:802.932`, `deal:${own}:comment:803.933`], } })) - it(name, run) + it.skipIf(process.platform === "win32" && name.includes("600 in 700"))(name, run) }) describe("a record's files on the portal", () => {