mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
ci: enhance GraphApiService tests with additional logger mocks
- Added mock implementation for logger methods in GraphApiService tests to improve error and debug logging during test execution. - Ensured existing mocks remain intact while enhancing test coverage and clarity.
This commit is contained in:
parent
dbb234d3bf
commit
717f61d878
1 changed files with 7 additions and 0 deletions
|
|
@ -1,6 +1,13 @@
|
||||||
jest.mock('@microsoft/microsoft-graph-client');
|
jest.mock('@microsoft/microsoft-graph-client');
|
||||||
jest.mock('~/strategies/openidStrategy');
|
jest.mock('~/strategies/openidStrategy');
|
||||||
jest.mock('~/cache/getLogStores');
|
jest.mock('~/cache/getLogStores');
|
||||||
|
jest.mock('@librechat/data-schemas', () => ({
|
||||||
|
...jest.requireActual('@librechat/data-schemas'),
|
||||||
|
logger: {
|
||||||
|
error: jest.fn(),
|
||||||
|
debug: jest.fn(),
|
||||||
|
},
|
||||||
|
}));
|
||||||
jest.mock('~/config', () => ({
|
jest.mock('~/config', () => ({
|
||||||
logger: {
|
logger: {
|
||||||
error: jest.fn(),
|
error: jest.fn(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue