chore(ui): fix post-rebase type drift in useCreateAccessGroup test
Some checks failed
LiteLLM Rust / rustfmt, clippy, test (push) Has been cancelled

The deriveErrorMessage mock was typed zero-arg but is called with a spread, which the current vitest/TS types reject after rebasing onto staging. Widen it to accept varargs
This commit is contained in:
ryan-crabbe-berri 2026-06-30 16:49:09 -07:00
parent bab23bbbbc
commit f427284c61

View file

@ -11,7 +11,7 @@ const { fetchMock } = vi.hoisted(() => {
});
const handleError = vi.fn();
const deriveErrorMessage = vi.fn(() => "derived message");
const deriveErrorMessage = vi.fn((..._args: unknown[]) => "derived message");
vi.mock("@/components/networking", () => ({
getProxyBaseUrl: () => "http://localhost:4000",
getGlobalLitellmHeaderName: () => "Authorization",