Merge pull request #27537 from BerriAI/litellm_/hardcore-goldstine-baabae

fix(ui-tests): add Typography to antd mock in create_key_button test
This commit is contained in:
yuneng-jiang 2026-05-09 10:56:25 -07:00 • committed by GitHub
commit 96f23c2e6f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,6 +155,15 @@ vi.mock("antd", () => {
const Button = ({ children, htmlType, ...props }: { children?: any; htmlType?: string }) =>
React.createElement("button", { ...props, type: htmlType ?? props.type }, children);
const Typography = ({ children, ...props }: { children?: any }) =>
React.createElement("div", props, children);
Typography.Text = ({ children, ...props }: { children?: any }) =>
React.createElement("span", props, children);
Typography.Paragraph = ({ children, ...props }: { children?: any }) =>
React.createElement("p", props, children);
Typography.Title = ({ children, ...props }: { children?: any }) =>
React.createElement("h1", props, children);
return {
Button,
Form,
@ -171,6 +180,7 @@ vi.mock("antd", () => {
Switch,
Tag,
Tooltip,
Typography,
};
});