(id: string, hero?: PostHero | null)
| 1782 | const sourceFixture = defaultFeedPage.edges[0].node.source; |
| 1783 | |
| 1784 | const buildPost = (id: string, hero?: PostHero | null): Post => |
| 1785 | ({ |
| 1786 | id, |
| 1787 | title: `Post ${id}`, |
| 1788 | createdAt: '2026-05-25T00:00:00.000Z', |
| 1789 | image: 'https://daily.dev/img.png', |
| 1790 | readTime: 1, |
| 1791 | source: sourceFixture, |
| 1792 | tags: [], |
| 1793 | permalink: `http://localhost:4000/r/${id}`, |
| 1794 | numComments: 0, |
| 1795 | numUpvotes: 0, |
| 1796 | commentsPermalink: `http://localhost:5002/posts/${id}`, |
| 1797 | read: false, |
| 1798 | upvoted: false, |
| 1799 | commented: false, |
| 1800 | type: PostType.Article, |
| 1801 | domain: 'example.com', |
| 1802 | hero: hero ?? null, |
| 1803 | } as Post); |
| 1804 | |
| 1805 | const SIGNIFICANCE_BY_SIZE: Record<number, PostHeroSignificance> = { |
| 1806 | 4: 'breaking', |
no outgoing calls
no test coverage detected