()
| 58 | }).catch(() => { /* A partial cache is not a complete preview. */ }); |
| 59 | } |
| 60 | const generation = async (): Promise<string | undefined> => { |
| 61 | try { |
| 62 | const raw = await client.indexStatusPayload(project) as Record<string, unknown>; |
| 63 | return typeof raw.indexed_at === 'string' && raw.indexed_at ? raw.indexed_at : undefined; |
| 64 | } catch { return undefined; } |
| 65 | }; |
| 66 | void (async () => { |
| 67 | const before = await generation(); |
| 68 | checked = true; checkedGeneration = before; |
no test coverage detected