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

512 B
Raw Blame
/**
 * Specs in the `api` workspace mock `@librechat/data-schemas` down to its logger and still load
 * this package, so loading it must not read any other data-schemas export.
 */
jest.mock('@librechat/data-schemas', () => ({
  logger: { error: jest.fn(), warn: jest.fn(), info: jest.fn(), debug: jest.fn() },
}));

describe('@librechat/api entry', () => {
  it('loads where @librechat/data-schemas is mocked down to its logger', () => {
    expect(() => jest.requireActual('./index')).not.toThrow();
  });
});