mxrelay-consumer/tests/setup.ts
2025-08-18 22:22:04 +07:00

15 lines
No EOL
301 B
TypeScript

/**
* Jest test setup
*/
// Extend Jest timeout for integration tests
jest.setTimeout(30000);
// Mock WebSocket for tests
(global as any).WebSocket = jest.fn().mockImplementation(() => ({
send: jest.fn(),
close: jest.fn(),
terminate: jest.fn(),
on: jest.fn(),
readyState: 1, // OPEN
}));