Re:Why and how to use service injection in Node.js
by dimgl on Sunday October 31, 2021 @12:34PM
(#29058182)
This is not necessarily true. Dependency injection allows you to provide your own implementations for unit testing. I'm surprised we're still talking about dependency injection in Node.js. I made a really crude dependency injection library for Node six years ago.
https://github.com/divmgl/nwire