jjh42/mock

doctest

Closed this issue · 1 comments

Is it possible stub doctest? I need stup HTTPpoison inside doctests

I do not recommend mocking foundational libraries in elixir because it is hard to say how they're used by mix, other dependencies or your tests.

If you import HTTPpoison as an external dependency, that can definitely be stubbed inside your project.