Create a TaskList for the home page. (#8)

This task list can display tasks and delete them currently.

Reviewed-on: #8
Co-authored-by: Drew Galbraith <drew@tiramisu.one>
Co-committed-by: Drew Galbraith <drew@tiramisu.one>
This commit is contained in:
Drew 2025-09-23 04:39:29 +00:00 committed by Drew
parent d60d834f38
commit a683a071d1
8 changed files with 526 additions and 37 deletions

View file

@ -4,13 +4,12 @@ import Home from './home'
describe('Home component', () => {
it('should render task management interface', () => {
render(<Home />)
expect(screen.getByText(/Tasks/i)).toBeInTheDocument()
const mockLoaderData = { tasks: [] }
render(<Home loaderData={mockLoaderData} />)
expect(
screen.getByText(/GTD-inspired task management system/i)
).toBeInTheDocument()
expect(
screen.getByText(/Task Management Interface Coming Soon/i)
screen.getByRole('heading', { level: 1, name: /Tasks/i })
).toBeInTheDocument()
// TaskList component should be rendered with empty state
expect(screen.getByText(/No tasks found/i)).toBeInTheDocument()
})
})