AI Features

Creating Reusable Mocks: Continued

Continue the discussion about reusable mocks and testing practices while we further develop the "useTasks" hook.

Where we left off

In the last lesson, we wrote the very first test for the useTasks hook. This hook is supposed to be a bridge between APIs and the TaskList component. Our first test verified that useTasks loads the tasks from the API. To do this, we had to mock the API functions. Firstly, we did it ...

Ask