This repository showcases the incremental development of a simple ToDO app in React.
It uses Test Driven Development (TDD) as a guide and follows the base principle of the Testing Library:
The more your tests resemble the way your software is used, the more confidence they can give you.
Along the way there are several topics being covered:
- core React concepts
- semantic html
- ?
There is little to no styling applied to the app and it is intentional. The focus is on the core concepts of the app and not on CSS magic shenanigans.
The frontend is developed using React (and typescript) and bundled Vite with and the end to end tests have been created using Playwright. The code is lint using Biome.
The IDE used in the development was VS Code and its settings are available in the repository.
- Run the frontend on your local machine
cd frontend
npm i
npm run dev
- Run the end-to-end against your frontend dev
cd e2e
npm i
npm run test
The first test for the application is a "simple" render of our page.
This test introduced the concepts of the ARIA Roles and why they matter.
In particular, this test focused on having the landmark roles in application as early as possible in the development phase.
🔜 🚧
🚧 ⬅️
🔜 Update to React 19
🔜 Add a backend service to deploy the app "for real"
🔜 Explore the possibility of Unit Tests using the React Testing Library
Made with 💜
©️ Rita Castro