How to do Dependency Injection in node.js?

added by JavaScript Kicks
12/16/2015 5:49:03 PM

486 Views

Dependency Injection is a pattern that helps you create loosely coupled codebases. You can swap collaborators and make your code testable. You can do dependency injection without additional libraries. Here's two common questions I'm hearing very often when people start using node.js: Q: How do I overwrite require for testing?


0 comments