MCPcopy
hub / github.com/MiniMax-AI/cli / stream.test.ts

File stream.test.ts

test/client/stream.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it, expect, afterEach } from 'bun:test';
2import { parseSSE, type ServerSentEvent } from '../../src/client/stream';
3import { createMockServer, type MockServer } from '../helpers/mock-server';
4

Callers

nothing calls this directly

Calls 6

createMockServerFunction · 0.90
parseSSEFunction · 0.90
fetchFunction · 0.85
collectEventsFunction · 0.85
closeMethod · 0.80
sseResponseFunction · 0.70

Tested by

no test coverage detected