MCPcopy Create free account
hub / github.com/dailydotdev/apps / createComment

Function createComment

packages/webapp/__tests__/PostMarkdown.spec.ts:34–45  ·  view source on GitHub ↗
(overrides: Partial<Comment> = {})

Source from the content-addressed store, hash-verified

32 }) as PostMarkdownPost;
33
34const createComment = (overrides: Partial<Comment> = {}): Comment =>
35 ({
36 id: 'c1',
37 content: 'The double render is StrictMode in dev only.',
38 contentHtml: '<p>The double render is StrictMode in dev only.</p>',
39 createdAt: '2026-07-14T10:00:00.000Z',
40 permalink: 'https://daily.dev/posts/x#c-c1',
41 numUpvotes: 24,
42 numAwards: 0,
43 author: { username: 'gergely', name: 'Gergely Orosz' },
44 ...overrides,
45 }) as Comment;
46
47const build = (
48 post = createPost(),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected