Lightweight Dependency Injection In Elixir (Without the Tears) Andrew Hao · March 19th, 2018 In our last Elixir blog post, “Functional Mocks with Mox in Elixir”, we discussed how testing across module boundaries could be made easier by creating a Behaviour for a collaborating module, then utilizing the wonderful framework Mox to substitute a lightweight mock module in tests. This approach is well
![Lightweight Dependency Injection In Elixir (Without the Tears)](https://cdn-ak-scissors.b.st-hatena.com/image/square/72d37b29ccfad39eca1c8e8532caa20012617204/height=288;version=1;width=512/https%3A%2F%2Fblog.carbonfive.com%2Fwp-content%2Fuploads%2F2018%2F03%2Frsz_john-carlisle-539580-unsplash_1-970x647.jpg)