Stubbing Entire Interfaces
Explore how to stub whole interfaces in Elixir tests using Mox's stub_with function to simulate external service calls without setting detailed expectations. Understand setting up no-op modules and configuring application environment for seamless integration and end-to-end testing.
We'll cover the following...
We'll cover the following...
We don’t always want to use the mock module for every test. Imagine we have tests that cover a piece of code that internally calls rain?/2. In that case, we probably don’t want to set expectations on functions in the SoggyWaffle.WeatherAPIMock module since we don’t care about checking how ...