From 55d63caaf4eb869876340c86fe8188cf5fdfad49 Mon Sep 17 00:00:00 2001 From: Samuel Path Date: Tue, 1 Jul 2025 15:20:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=BB=20ci:=20Make=20Unit=20Tests=20Pass?= =?UTF-8?q?=20on=20MacOS=20(#8165)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/server/routes/files/multer.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/server/routes/files/multer.spec.js b/api/server/routes/files/multer.spec.js index 0324262a71..2fb9147aef 100644 --- a/api/server/routes/files/multer.spec.js +++ b/api/server/routes/files/multer.spec.js @@ -477,7 +477,9 @@ describe('Multer Configuration', () => { done(new Error('Expected mkdirSync to throw an error but no error was thrown')); } catch (error) { // This is the expected behavior - mkdirSync throws synchronously for invalid paths - expect(error.code).toBe('EACCES'); + // On Linux, this typically returns EACCES (permission denied) + // On macOS/Darwin, this returns ENOENT (no such file or directory) + expect(['EACCES', 'ENOENT']).toContain(error.code); done(); } });