MCPcopy Index your code
hub / github.com/coder/coder / OneWayWebSocket.test.ts

File OneWayWebSocket.test.ts

site/src/utils/OneWayWebSocket.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * @file Sets up unit tests for OneWayWebSocket.
3 *
4 * 2025-03-18 - Really wanted to define these as integration tests with MSW, but

Callers

nothing calls this directly

Calls 5

createMockWebSocketFunction · 0.90
publishErrorMethod · 0.80
publishMessageMethod · 0.80
addEventListenerMethod · 0.65
removeEventListenerMethod · 0.45

Tested by

no test coverage detected