(recipient: string)
| 41 | } |
| 42 | |
| 43 | export async function readEmail(recipient: string) { |
| 44 | try { |
| 45 | const email = await readFixture('email', recipient) |
| 46 | return EmailSchema.parse(email) |
| 47 | } catch (error) { |
| 48 | console.error(`Error reading email`, error) |
| 49 | return null |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | export function requireHeader(headers: Headers, header: string) { |
| 54 | if (!headers.has(header)) { |
no test coverage detected