Mocha --parallel: test files collide on shared ports and database state when run across workers
Mocha's --parallel mode distributes test files across a pool of worker processes, each loading its files in isolation. That isolation ends at the process boundary: any external resource a suite touches — a TCP port, a database schema, a temp directory — is still shared by every worker on the machine. The design goal here is to keep an existing suite green un