(noindex: boolean)
| 16 | const mockRequest = gqlClient.request as jest.Mock; |
| 17 | |
| 18 | const createPost = (noindex: boolean) => ({ |
| 19 | id: 'p-1', |
| 20 | type: PostType.Article, |
| 21 | title: 'Post title', |
| 22 | slug: 'post-title-p-1', |
| 23 | numUpvotes: 10, |
| 24 | createdAt: new Date('2024-01-01').toISOString(), |
| 25 | updatedAt: new Date('2024-01-02').toISOString(), |
| 26 | language: 'en', |
| 27 | tags: ['seo'], |
| 28 | noindex, |
| 29 | }); |
| 30 | |
| 31 | const runGssp = () => |
| 32 | getServerSideProps({ |
no outgoing calls
no test coverage detected