MCPcopy
hub / github.com/robtaussig/react-use-websocket / use-websocket.test.ts

File use-websocket.test.ts

src/lib/use-websocket.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { renderHook } from '@testing-library/react-hooks';
2import { useWebSocket } from './use-websocket';
3import WS from "jest-websocket-mock";
4import { Options } from './types';

Callers

nothing calls this directly

Calls 3

parseSocketIOUrlFunction · 0.90
useWebSocketFunction · 0.90
sleepFunction · 0.70

Tested by

no test coverage detected