Dependency Injection with NodeJS
How we achieved better separation of concerns with factory function pattern
If you work with NodeJS, you probably have been using require()
to get all the dependencies for your code. It can get in the way during unit testing but proxyquire made…