the-tip-top-backend/test
soufiane 74a7f387c5 fix: resolve test failures in CI pipeline
- Add jest.setup.js with JWT_SECRET for test environment
- Update jest.config.js with setupFiles and increased timeout
- Fix auth middleware to return 401 (not 403) for invalid JWT tokens
- Fix errorHandler to return 'message' instead of 'error' in response
- Fix validate middleware to properly detect Zod errors in ESM
- Remove unused 'pool' import in middleware tests (lint fix)
- Update middleware tests to check next() calls with AppError

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 12:05:00 +01:00
..
integration test: add comprehensive unit and integration tests 2025-11-27 11:23:43 +01:00
unit fix: resolve test failures in CI pipeline 2025-11-27 12:05:00 +01:00
app.test.js fix: update test to use correct route (/) instead of /health 2025-11-18 16:59:43 +01:00