MCPcopy
hub / github.com/epicweb-dev/epic-stack / readEmail

Function readEmail

tests/mocks/utils.ts:43–51  ·  view source on GitHub ↗
(recipient: string)

Source from the content-addressed store, hash-verified

41}
42
43export 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
53export function requireHeader(headers: Headers, header: string) {
54 if (!headers.has(header)) {

Callers 3

onboarding.test.tsFile · 0.90
requireEmailFunction · 0.85

Calls 1

readFixtureFunction · 0.85

Tested by

no test coverage detected