This commit is contained in:
2026-05-27 10:30:23 -04:00
parent 5214412fff
commit 1e1773c186
48 changed files with 5351 additions and 160 deletions

15
web/test/__mocks__/ws.js Normal file
View File

@@ -0,0 +1,15 @@
const WebSocket = {
OPEN: 1,
CONNECTING: 0,
CLOSING: 2,
CLOSED: 3,
};
class MockWebSocketServer {
clients = new Set();
on() {}
close(cb) { cb?.(); }
}
export { MockWebSocketServer as WebSocketServer, WebSocket };
export default { WebSocketServer: MockWebSocketServer, WebSocket };