The revision to including directly the helper modules was half right. What I want is a set of functions all in the same module. What I don't want is a mega-class. It is an api coming from one file that internally happens to be implemented in several files.
What I want, is an api to the db module. This is exported from one place, the db.js module. That module re-exports things. Outside the db folder, clients should only access db.js. Inside, like in the test modules, they can directly access private helpers.
The revision to including directly the helper modules was half right. What I want is a set of functions all in the same module. What I don't want is a mega-class. It is an api coming from one file that internally happens to be implemented in several files.
What I want, is an api to the db module. This is exported from one place, the db.js module. That module re-exports things. Outside the db folder, clients should only access db.js. Inside, like in the test modules, they can directly access private helpers.