Unit Testing With Flutter: Getting Started | Kodeco

In this Unit Testing with Flutter tutorial, you’ll improve your programming skills by learning how to add unit tests to your apps.


This is a companion discussion topic for the original entry at https://www.kodeco.com/6926998-unit-testing-with-flutter-getting-started

Be attentive !

Answer has a mistake in Challenge:
expect(cartViewModel.totalCost, 1443); does not work.

Right Answer:
cartViewModel.getCartSummary();
expect(cartViewModel.totalCost, 1443);

Thank you for bringing this to our attention. We appreciate your participation.

Don’t hesitate to ask any questions or provide additional details to help us understand your issue better.