Skip to content

The agent that grows with you

test: type the WebSocket mock to satisfy docker-build tsc strictness

Tekniumfbe4d73051f7
diff --git a/web/src/lib/pty-keyboard-shortcuts.test.ts b/web/src/lib/pty-keyboard-shortcuts.test.ts
index ad645f05c89..34b311b5c08 100644
--- a/web/src/lib/pty-keyboard-shortcuts.test.ts
+++ b/web/src/lib/pty-keyboard-shortcuts.test.ts
@@ -50,7 +50,7 @@ describe('sendPtyShortcutSequence', () => {
const socket = (readyState: number = WebSocket.OPEN) => ({
readyState,
send: vi.fn(),
- })
+ }) as unknown as Pick<WebSocket, 'readyState' | 'send'> & { send: ReturnType<typeof vi.fn> }
it('sends the sequence when the socket and PTY state are open', () => {
const ws = socket()