MCPcopy
hub / github.com/alibaba/hooks / index.spec.ts

File index.spec.ts

packages/hooks/src/useWebSocket/__tests__/index.spec.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { act, renderHook } from '@testing-library/react';
2import { afterEach, describe, expect, test, vi } from 'vitest';
3import WS from 'vitest-websocket-mock';
4import { sleep } from '../../utils/testingHelpers';

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.90
useWebSocketFunction · 0.85

Tested by

no test coverage detected