mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
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. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| app.js | ||
| EndpointService.js | ||
| getCachedTools.js | ||
| getEndpointsConfig.js | ||
| index.js | ||
| ldap.js | ||
| loadAsyncEndpoints.js | ||
| loadAsyncEndpoints.spec.js | ||
| loadConfigModels.js | ||
| loadConfigModels.spec.js | ||
| loadCustomConfig.js | ||
| loadCustomConfig.spec.js | ||
| loadDefaultEConfig.js | ||
| loadDefaultEConfig.spec.js | ||
| loadDefaultModels.js | ||
| loadDefaultModels.spec.js | ||
| mcp.js | ||
| rum.js | ||