The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test(ui): spread the real lucide-react module in the KeyInfoView mock
Yuneng Jiangd7ec4d98b100
diff --git a/ui/litellm-dashboard/src/components/templates/KeyInfoView.handleKeyUpdate.test.tsx b/ui/litellm-dashboard/src/components/templates/KeyInfoView.handleKeyUpdate.test.tsxindex 374e36029a0..b87beed048a 100644--- a/ui/litellm-dashboard/src/components/templates/KeyInfoView.handleKeyUpdate.test.tsx+++ b/ui/litellm-dashboard/src/components/templates/KeyInfoView.handleKeyUpdate.test.tsx@@ -182,7 +182,8 @@ vi.mock("@heroicons/react/outline", async () => {return { ArrowLeftIcon, TrashIcon, RefreshIcon };});-vi.mock("lucide-react", async () => {+vi.mock("lucide-react", async (importOriginal) => {+ const actual = await importOriginal<typeof import("lucide-react")>();const React = await import("react");function CopyIcon() {return React.createElement("span");@@ -192,7 +193,7 @@ vi.mock("lucide-react", async () => {return React.createElement("span");}(CheckIcon as any).displayName = "CheckIcon";- return { CopyIcon, CheckIcon };+ return { ...actual, CopyIcon, CheckIcon };});// Heavy children -> async factories & local React