mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
💻 ci: Make Unit Tests Pass on MacOS (#8165)
This commit is contained in:
parent
313539d1ed
commit
55d63caaf4
1 changed files with 3 additions and 1 deletions
|
|
@ -477,7 +477,9 @@ describe('Multer Configuration', () => {
|
||||||
done(new Error('Expected mkdirSync to throw an error but no error was thrown'));
|
done(new Error('Expected mkdirSync to throw an error but no error was thrown'));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// This is the expected behavior - mkdirSync throws synchronously for invalid paths
|
// 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();
|
done();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue