So I'm trying to write unit tests and only want to test the functionality of a single module but that module has dependencies. It's looking like my options are to:
- Use System.register to stub/mock out dependencies. Something like rewire. (Is there going to be a similar story for ES6 or is the register syntax something that only System.js provides?)
- Using another sort of dependency injection system. (Seems slightly redundant but looks like what Angular2 is doing.)
What are your opinions?