Re:Ask HN: Who regrets choosing Elixir?
by mapcars on Sunday May 24, 2020 @05:11PM
(#23294848)
>and why you're supposed to use Mox, which solves that problem
I never used that Mox and never had a need to. I just use `Mock` which allows `passthrough` as I stated in another comment, what other clarity is needed I don't understand. Can you give any example of the problem you can not solve instead of pitiness?
Re:Ask HN: Who regrets choosing Elixir?
by dnautics on Monday May 25, 2020 @01:22PM
(#23302948)
You can't run concurrent tests doing direct mock injection in that fashion, because the mock is global. If you use Mox (or similar), your mocks are tied to your test.
I never used that Mox and never had a need to. I just use `Mock` which allows `passthrough` as I stated in another comment, what other clarity is needed I don't understand. Can you give any example of the problem you can not solve instead of pitiness?