DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Express.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
Express.js
Why should `app.listen()` be kept in a separate file from the main Express routes export file when writing test suites?
A
To prevent CSS loading issues in headless browsers
B
To prevent port collision crashes (EADDRINUSE) when running multiple test suites in parallel
C
Because Supertest only supports listening on port 80
D
Because Node forbids exports from listening files
Check Answer