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

aelassas / wexcommerce / 15552252730

10 Jun 2025 06:29AM UTC coverage: 94.011% (-0.2%) from 94.246%
15552252730

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

326 of 337 branches covered (96.74%)

Branch coverage included in aggregate %.

47 of 66 new or added lines in 4 files covered. (71.21%)

2264 of 2418 relevant lines covered (93.63%)

10.89 hits per line

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

72.57
/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