We hope that the exercise was simple! It’s time to see a possible solution to the exercise.

Mocking ShoppingCartCubit

Mocking the ShoppingCartCubit is done by extending the MockCubit class provided to us by the bloc_test library.

Get hands-on with 1200+ tech skills courses.