Testing the TaskList Component
Continue practicing unit testing. In this lesson, test the "TaskList" component, which renders a list of tasks in your app.
Test for TaskList
Let’s start by planning out the architecture of the component. Since it is going to be responsible for displaying the tasks, TaskList
definitely needs access to those. We will use a tasks
prop to pass them down.
The only feature requested from this component right now is to display whichever tasks that we pass in through the tasks
prop. We will not assume which components are used to render the tasks ...
Access this course and 1400+ top-rated courses and projects.