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);