MCPcopy Create free account
hub / github.com/ShipSecAI/studio / buildChunk

Function buildChunk

frontend/src/hooks/__tests__/useTerminalStream.test.ts:4–10  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

2import { mergeTerminalChunks } from '../useTerminalStream';
3
4const buildChunk = (index: number) => ({
5 nodeRef: 'node-1',
6 stream: 'pty',
7 chunkIndex: index,
8 payload: Buffer.from(`chunk-${index}`).toString('base64'),
9 recordedAt: new Date().toISOString(),
10});
11
12describe('mergeTerminalChunks', () => {
13 it('appends new chunks in order', () => {

Callers 1

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected