(id: string, children: Comment[] = [])
| 100 | sortBy: SortCommentsBy.NewestFirst, |
| 101 | }); |
| 102 | const createComment = (id: string, children: Comment[] = []) => |
| 103 | ({ |
| 104 | id, |
| 105 | content: id, |
| 106 | children: { |
| 107 | edges: children.map((node) => ({ node })), |
| 108 | pageInfo: null, |
| 109 | }, |
| 110 | }) as unknown as Comment; |
| 111 | const setComments = (comments: Comment[]) => |
| 112 | client.setQueryData<PostCommentsData>(queryKey, { |
| 113 | postComments: { |
no outgoing calls
no test coverage detected