Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ websockets.test.ts
File
websockets.test.ts
site/src/testHelpers/websockets.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ createMockWebSocket } from
"./websockets"
;
2
3
describe(createMockWebSocket.name, () => {
4
it(
"Throws if URL does not have ws:// or wss:// protocols"
, () => {
Callers
nothing calls this directly
Calls
7
createMockWebSocket
Function · 0.90
publishError
Method · 0.80
publishMessage
Method · 0.80
addEventListener
Method · 0.65
close
Method · 0.65
removeEventListener
Method · 0.45
send
Method · 0.45
Tested by
no test coverage detected