In Dart, we can easily create mocks with packages like mockito or mocktail.
But sometimes it's quite handy to create fakes that can be configured in many different ways (and even store some state).
I often do this to test loading and error states in the UI. 👇
Found this useful? Show some love and share the original tweet 🙏
Previous | Next |
---|---|
Anatomy of a Riverpod Provider | How to Generate and Analyze a Flutter Test Coverage Report in VSCode |