15 lines
No EOL
301 B
TypeScript
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
|
|
})); |