Summary
In this chapter, we have explored how to test Combine code. To make the tests easier to understand, we introduced a helper method and improved its failure message. We figured out how to make an Equatable
type and how this can help in unit tests. Finally, we learned how to test storing and loading a JSON file to and from the filesystem of the iOS device.
With these skills, you should be able to write tests for a variety of different model scenarios.
In the next chapter, we will start building the user interface. We will start with the list of to-do items.