Now that we have both implementations for the Pomodoro business logic and the in-memory repository, let’s write some tests for the business logic.

For brevity, we’ll only add tests for the business logic, which will indirectly test the repository when it’s used. For a real production application, we recommend that we write unit tests for the repository implementation as well.

Get hands-on with 1400+ tech skills courses.