learning_ai_common_plat/packages/auth/src/__tests__
saravanakumardb1 99cbdf582c feat(auth): add middleware tests + E2E flow + migrate tracker-service to @bytelyst/auth
- Upgraded @bytelyst/auth middleware to throw ServiceError types (UnauthorizedError, ForbiddenError)
- Added @bytelyst/errors as dependency to auth package
- 11 new middleware tests (extractAuth + requireRole)
- 4 new E2E tests (full login → JWT → auth → role check flow)
- Refactored tracker-service lib/auth.ts from 48-line local impl to 1-line re-export
- Added @bytelyst/auth as tracker-service dependency
- All 277 tests pass, 0 regressions
2026-02-12 23:41:46 -08:00
..
auth.test.ts feat: add package tests (58 new) + @bytelyst/fastify-core package 2026-02-12 22:17:17 -08:00
e2e-auth-flow.test.ts feat(auth): add middleware tests + E2E flow + migrate tracker-service to @bytelyst/auth 2026-02-12 23:41:46 -08:00
middleware.test.ts feat(auth): add middleware tests + E2E flow + migrate tracker-service to @bytelyst/auth 2026-02-12 23:41:46 -08:00