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. |
||
|---|---|---|
| .. | ||
| controllers | ||
| middleware | ||
| routes | ||
| services | ||
| utils | ||
| cleanup.js | ||
| csp.spec.js | ||
| experimental.js | ||
| experimental.spec.js | ||
| index.js | ||
| index.metrics.spec.js | ||
| index.spec.js | ||
| socialLogins.js | ||
| socialLogins.spec.js | ||
| telemetry.js | ||
| telemetry.spec.js | ||