Commit Graph

1 Commits

Author SHA1 Message Date
Paul Huliganga b62b8061f7 fix(build): resolve TypeScript errors and stabilize test suite
- Dependencies: add @types/debug; fix logger argument typing
- Core: add middleware.ts (asyncHandler), create logger.ts
- Error handling: global middleware in index.ts maps Zod/service errors to proper HTTP status codes (400/413/502/504/415)
- Import route: catch UrlImportError and return mapped responses
- Tests: add error handlers to test setups to match production behavior
- Tags: duplicate/empty name errors now return 400
- Tests expectations: CopyMeThatImportService tests updated to match parser behavior (invalid recipes filtered, not counted as failures)
- Numerous route refactors (asyncHandler, validation, pagination links) and test expansions

Result: npm run build succeeds, all 90 tests pass.

Next: review low-priority items (FTS, harness auth), commit when ready.
2026-03-30 00:45:05 -04:00