• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aelassas / movinin / 15552245918

10 Jun 2025 06:29AM UTC coverage: 94.376% (-0.3%) from 94.694%
15552245918

push

github

aelassas
refactor(api): enhance server startup, database initialization, and graceful shutdown

- Modularized server creation supporting HTTP/HTTPS with async file reads
- Added detailed JSDoc comments for functions and constants
- Added robust database connection and initialization checks before starting server
- Introduced configurable shutdown timeout to force exit if shutdown hangs
- Improved shutdown handler to log received signals and handle cleanup gracefully
- Used process.once for signal handling to avoid multiple shutdowns
- Improved code readability with consistent naming and minor cleanup

305 of 323 branches covered (94.43%)

Branch coverage included in aggregate %.

76 of 98 new or added lines in 4 files covered. (77.55%)

2296 of 2433 relevant lines covered (94.37%)

11.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.38
/api/src/common/databaseHelper.ts


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc