mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-27 04:07:05 +00:00
test(mcp): mock static tool startup sync (#14711)
This commit is contained in:
parent
ed9542ed75
commit
ccb43bf32b
2 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ const { MongoMemoryServer } = require('mongodb-memory-server');
|
|||
const mongoose = require('mongoose');
|
||||
|
||||
jest.mock('~/server/services/Config', () => ({
|
||||
syncStaticTools: jest.fn().mockResolvedValue(undefined),
|
||||
loadCustomConfig: jest.fn(() => Promise.resolve({})),
|
||||
getAppConfig: jest.fn().mockResolvedValue({
|
||||
paths: {
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ const { MongoMemoryServer } = require('mongodb-memory-server');
|
|||
const mongoose = require('mongoose');
|
||||
|
||||
jest.mock('~/server/services/Config', () => ({
|
||||
syncStaticTools: jest.fn().mockResolvedValue(undefined),
|
||||
mergeAppTools: jest.fn().mockResolvedValue(undefined),
|
||||
loadCustomConfig: jest.fn(() => Promise.resolve({})),
|
||||
getAppConfig: jest.fn().mockResolvedValue({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue