it('should render todo Items', () => { const store = createMockStore({ todos: [ { id: 1, text: 'Have Breakfast', completed: true }, { id: 2, text: 'Have Lunch', completed: false } ] }); const { getAllByTestId } = renderWithStore(store); const todoItems = getAllByTestId('todo-item'); expect(todoItems[0]).toHaveTextContent('Have Breakfast'); expect(todoItems[0]).toHaveClass('completed'); expect(todoItems[1]).toHaveTextContent('Have Lunch'); expect(todoItems[1]).not.toHaveClass('completed'); });