MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / createMessage

Function createMessage

cli/src/utils/__tests__/feedback-helpers.test.ts:9–16  ·  view source on GitHub ↗
(
  overrides: Partial<ChatMessage> & { id: string },
)

Source from the content-addressed store, hash-verified

7import type { ChatMessage } from '../../types/chat'
8
9const createMessage = (
10 overrides: Partial<ChatMessage> & { id: string },
11): ChatMessage => ({
12 variant: 'ai',
13 content: 'test content',
14 timestamp: new Date().toISOString(),
15 ...overrides,
16})
17
18describe('buildMessageContext', () => {
19 test('returns target and recent messages for a valid target', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected