diff --git a/tests/utils.ts b/tests/utils.ts index f6750e4..6992024 100644 --- a/tests/utils.ts +++ b/tests/utils.ts @@ -182,7 +182,7 @@ export async function sendWsMessage( socket.onopen = (_event): void => { socket.onmessage = (event): void => { socket.terminate(); - return resolve(event.data); + return resolve(event.data as Buffer); }; socket.send(message);