Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

💻 ci: Make Unit Tests Pass on MacOS (#8165)

Samuel Path55d63caaf4eb
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();
}
});