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

1.0 KB
Raw Blame
/**
 * Jest config for Amazon DocumentDB live-compatibility tests.
 * These tests require network access to a real Amazon DocumentDB cluster
 * (VPC-only — run from a bastion/tunnel) and are NOT run in CI by default.
 *
 * Usage:
 *   DOCUMENTDB_URI="mongodb://user:[email protected]:27017/librechat_compat?tls=true&retryWrites=false" \
 *   DOCUMENTDB_TLS_CA_FILE="global-bundle.pem" \
 *     npx jest --config misc/documentdb/jest.documentdb.config.mjs
 */
export default {
  rootDir: '../..',
  testMatch: ['<rootDir>/misc/documentdb/**/*.documentdb.spec.ts'],
  moduleNameMapper: {
    '^@src/(.*)$': '<rootDir>/src/$1',
    '^~/(.*)$': '<rootDir>/src/$1',
  },
  transformIgnorePatterns: [
    '/node_modules/(?!mdast-util-|micromark|decode-named-character-reference|devlop|longest-streak|unist-util-|zwitch|character-(?:entities|reference)|parse-entities|stringify-entities|is-(?:alphanumerical|alphabetical|decimal|hexadecimal)|ccount|markdown-table|escape-string-regexp)',
  ],
  restoreMocks: true,
  testTimeout: 120000,
};