initial commit
This commit is contained in:
commit
619cb97fa3
23 changed files with 9242 additions and 0 deletions
15
tests/setup.ts
Normal file
15
tests/setup.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* 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
|
||||
}));
|
Loading…
Add table
Add a link
Reference in a new issue