Problem
for (const step of recipe.steps ?? []) on steps: {} throws TypeError: object is not iterable, escaping as an unhandled 500 (index.ts calls validation with no try/catch).
Where
src/guard.ts (validateRecipeUrls).
Acceptance
Add a failing test first asserting non-array steps return a "... must be an array" error string. Then fix.
Problem
for (const step of recipe.steps ?? [])onsteps: {}throwsTypeError: object is not iterable, escaping as an unhandled 500 (index.tscalls validation with no try/catch).Where
src/guard.ts(validateRecipeUrls).Acceptance
Add a failing test first asserting non-array steps return a
"... must be an array"error string. Then fix.