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

This commit is contained in:
Teknium
2026-08-14 23:57:02 -07:00
parent 180bd4b5a3
commit fbe4d73051
+1 -1
View File
@@ -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()