chore(client): fix typecheck issues

This commit is contained in:
Elian Doran
2025-07-30 23:46:43 +03:00
parent 29b813fa3b
commit 8a587d4d21
8 changed files with 79 additions and 11 deletions

View File

@@ -15,10 +15,10 @@ const mockElement = {
};
const mockJQuery = vi.fn(() => [mockElement]);
mockJQuery.length = 1;
(mockJQuery as any).length = 1;
mockJQuery[0] = mockElement;
global.$ = mockJQuery as any;
(global as any).$ = mockJQuery as any;
global.document = mockElement as any;
describe("shortcuts", () => {