Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Type the shortcut test helper's target

Bittic4b342d7e7bd
diff --git a/src/lib/commands.test.tsx b/src/lib/commands.test.tsx
index 5dcd8f4..1cc1b9b 100644
--- a/src/lib/commands.test.tsx
+++ b/src/lib/commands.test.tsx
@@ -10,7 +10,7 @@ import {
afterEach(() => { cleanup(); resetShortcutsForTests(); });
-const press = (key: string, init: Partial<KeyboardEventInit> = {}, target: EventTarget = document.body) =>
+const press = (key: string, init: Partial<KeyboardEventInit> = {}, target: Element = document.body) =>
fireEvent.keyDown(target, { key, bubbles: true, cancelable: true, ...init });
describe("combo parsing and matching", () => {