feature/upgrade #7

Merged
bpeskiewicz merged 9 commits from feature/upgrade into main 2026-04-16 20:11:06 +00:00
Owner
No description provided.
- Added expectError helper to test setup for consistent error assertions
- Replaced old console.log timing with pino-http structured logging
- Added /api/health endpoint that returns uptime (no auth required)
- Implemented global error handler with AppError support
- Refactored rateLimit middleware to throw AppError instead of sending responses
- Refactored routes to use AppError and propagate errors to central handler
- Removed inline error handling from asyncHandler - now uses _next
- Added comprehensive error handling tests (404, 400, 429 scenarios)
- All 78 tests passing
Add structured logging to file routes (list, download, links) and update
error responses to include both `error` and `message` fields per spec.
refactor: remove duplicated tests from error-handling.test.ts
All checks were successful
Run Tests / test (pull_request) Successful in 38s
Run Tests / lint (pull_request) Successful in 38s
c658a5fc32
Remove 5 tests that duplicate coverage already in dedicated test files
(files-download, files-listing, rate-limit).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bpeskiewicz/file-gateway!7
No description provided.