Files
mcp-use__mcp-use/.github
Ayaan Gazali 13ca58db78 fix(ci): actually run the mcp-use unit tests (#2213)
The step ran `pnpm --filter mcp-use --if-present test:unit`, but the mcp-use
package has no test:unit script, so --if-present turned it into a silent pass
and 447 tests never ran.

Point it at test:run, which is the script that exists and the same one the
client step above already uses.

Two failures were hiding behind the skip:

- usage.test.ts asserted telemetry was sent, but the step sets
  MCP_USE_ANONYMIZED_TELEMETRY=false, which short-circuits recordUsage. Those
  cases are about identity persistence, not the opt-out, so capture() now sets
  the variable itself. The file already tracks and restores it in afterEach.
- budgets/runtime-boundary.test.ts compared the builtin list with toEqual, so
  it depended on module resolution order between node:process and node:http.
  Sorted, which is what the case means by "loads only".

Verified with the step's own env: MCP_USE_ANONYMIZED_TELEMETRY=false
pnpm --filter mcp-use test:run gives 43 files, 447 passed, exit 0.

Closes #2203
2026-08-13 15:14:26 -07:00
..
2025-10-15 19:23:09 +02:00
2026-06-03 13:12:45 -07:00