Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
test: eliminate dynamic cast warnings in cloud-sync unit test
diegosouzapw5ac1e997a82b
diff --git a/tests/unit/cloud-sync.test.ts b/tests/unit/cloud-sync.test.tsindex 27966d3a23..5137382bcf 100644--- a/tests/unit/cloud-sync.test.ts+++ b/tests/unit/cloud-sync.test.ts@@ -224,8 +224,8 @@ test("cloudSync syncs data upstream and refreshes only locally stale provider toconst cloudSync = await loadCloudSync("sync-success");const result = await cloudSync.syncToCloud("machine-1", "created-key-1");- const staleAfter = await providersDb.getProviderConnectionById((stale as any).id);- const freshAfter = await providersDb.getProviderConnectionById((fresh as any).id);+ const staleAfter = await providersDb.getProviderConnectionById((stale as { id: string }).id);+ const freshAfter = await providersDb.getProviderConnectionById((fresh as { id: string }).id);assert.equal(Array.isArray(postedBody.providers), true);assert.equal(Array.isArray(postedBody.apiKeys), true);