Mockex is a lightweight mocking library for elixir. Create simple mocks for external/third-party calls or mock websocket servers with custom listeners and responses.
Run the doc/index.html file with live server.
Run mix test
Add mockex
to your list of dependencies in mix.exs
:
def deps do
[
{:mockex, git: "https://github.com/KyalSinLinLett/mockex", branch: "develop"}
]
end
Run mix deps.get