Skip to content

Commit

Permalink
Rename WebSocketServer mock
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Feb 17, 2025
1 parent da61806 commit 1369e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jest.mock('chokidar', () => ({
}))

jest.mock('ws', () => ({
Server: jest.fn(() => ({
WebSocketServer: jest.fn(() => ({
clients: [],
close: jest.fn((callback) => callback()),
on: mockWsOn,
Expand Down

0 comments on commit 1369e94

Please sign in to comment.