mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
test(ui): mock all pacer debounce hooks in VirtualKeysTable test
This commit is contained in:
parent
c619279534
commit
d285415245
1 changed files with 2 additions and 0 deletions
|
|
@ -16,6 +16,8 @@ vi.mock("@tanstack/react-pacer/debouncer", async () => {
|
|||
const [value, setValue] = React.useState(initial);
|
||||
return [value, setValue, { cancel: vi.fn(), flush: vi.fn() }];
|
||||
},
|
||||
useDebouncedCallback: (fn: (...args: unknown[]) => void) => fn,
|
||||
useDebouncer: (fn: (...args: unknown[]) => void) => ({ maybeExecute: fn, cancel: vi.fn(), flush: vi.fn() }),
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue