Using Dependency Injection with Mocha tests using Rewire

86 views
Skip to first unread message

Jordan Kasper

unread,
Mar 18, 2015, 11:45:32 AM3/18/15
to nod...@googlegroups.com
New article on the StrongBlog dealing with dependency injection, Mocha, and Node apps: https://strongloop.com/strongblog/javascript-unit-testing-using-dependency-injection/

Anyone else use this tool before? Seems pretty easy, but I haven't done much with DI on `require`d modules before. What other approaches are there?

--Jordan
Reply all
Reply to author
Forward
0 new messages