LibreChat/api/server/services/Config
Danny Avila 23ac2700ab
🧪 test: Keep EndpointService Spec Mocks Complete When the Real API Package Loads (#17324)
The spec mocked the installed `@librechat/api` and `librechat-data-provider`
packages as virtual modules and gave the data-provider mock only a few enums.
On CI the real `@librechat/api` build is sometimes loaded instead of the mock;
it then imports `@librechat/data-schemas`, which reads `ResourceType.AGENT` from
the partial data-provider mock and throws, failing `Tests: api (shard 1/3)`
on dev and on unrelated PRs.

Mock both packages as the real modules they are, and spread the actual
data-provider into its mock so every enum exists whichever API build loads.
2026-10-22 09:59:42 +02:00
..
__tests__ 🧪 test: Keep EndpointService Spec Mocks Complete When the Real API Package Loads (#17324) 2026-10-22 09:59:42 +02:00
app.js 🔑 feat: Keep Dotted Record Keys in Admin Config Writes and Publish the Config Contract (#17322) 2026-10-22 09:59:08 +02:00
EndpointService.js 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00
getCachedTools.js 🧭 fix: Make MCP Catalog Redis Cluster-Safe (#14717) 2026-08-09 06:59:29 -04:00
getEndpointsConfig.js
index.js
ldap.js
loadAsyncEndpoints.js
loadAsyncEndpoints.spec.js
loadConfigModels.js
loadConfigModels.spec.js 🥢 fix: Fit MCP App Snapshots Within Message Documents (#16299) 2026-10-01 03:46:17 +00:00
loadCustomConfig.js 🏺 fix: Preserve Last Good Config on Reload (#16383) 2026-09-27 07:35:56 -04:00
loadCustomConfig.spec.js 🏺 fix: Preserve Last Good Config on Reload (#16383) 2026-09-27 07:35:56 -04:00
loadDefaultEConfig.js
loadDefaultEConfig.spec.js
loadDefaultModels.js 🧾 feat: Serve Built-In Endpoint Model Lists From Config So Overrides Can Narrow Them (#16639) 2026-10-01 19:58:20 -04:00
loadDefaultModels.spec.js 🌐 fix: Expose Gemini Models to Vertex AI Agents (#15234) 2026-08-27 06:50:23 -04:00
mcp.js 📡 fix: Refresh MCP Tools After List-Changed Notifications (#14686) 2026-08-08 13:50:21 -04:00
rum.js feat: add masked session replay lifecycle (#17194) 2026-10-21 14:51:15 -04:00