NestJS: Polishing and testing
· 8 min read
🎯 Mục tiêu tuần cuối: Hoàn thiện ứng dụng, viết tests, documentation, và có thể demo/giải thích toàn bộ
1. CHỨC NĂNG CẦN HOÀN THÀNH
| STT | Chức năng | Mô tả | Output |
|---|---|---|---|
| 6.1 | Error Handling | Global exception filters | Errors được handle gracefully |
| 6.2 | Unit Tests | Test services, scoring | Coverage > 80% |
| 6.3 | Integration Tests | Test API endpoints | All endpoints tested |
| 6.4 | E2E Tests | Test WebSocket flow | Full game flow tested |
| 6.5 | Swagger Docs | API documentation | /api-docs accessible |
| 6.6 | Graceful Shutdown | Handle SIGTERM | Clean disconnect |