Stubs are controllable implementations of dependencies that return predefined responses.
Isolate your code from external dependencies:
- Databases
- APIs
- External services.
So you can focus on testing the behavior of your code.
pull down to refresh