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

This commit is contained in:
Samuel Path 2025-07-01 15:20:33 +02:00 committed by GitHub
parent 313539d1ed
commit 55d63caaf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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