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

textbook / starter-kit / 19108427793

05 Nov 2025 04:03PM UTC coverage: 62.284% (-0.5%) from 62.827%
19108427793

push

github

textbook
Ensure errors on app start get reported

https://expressjs.com/en/guide/migrating-5#app.listen

46 of 64 branches covered (71.88%)

Branch coverage included in aggregate %.

0 of 6 new or added lines in 1 file covered. (0.0%)

314 of 514 relevant lines covered (61.09%)

3.74 hits per line

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

0.0
/api/server.js
1
import { connectDb } from "./db.js";
×
2
import config from "./utils/config.js";
×
3
import logger from "./utils/logger.js";
×
4

5
const { port } = config.init();
×
6

7
await connectDb();
×
8

9
const { default: app } = await import("./app.js");
×
10

NEW
11
app.listen(port, (err) => {
×
NEW
12
        if (err) {
×
NEW
13
                throw err;
×
NEW
14
        }
×
NEW
15
        logger.info(`listening on ${port}`);
×
NEW
16
});
×
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