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