/todo-app

Todo App with React Testing Library Examples

Primary LanguageTypeScriptMIT LicenseMIT

Todo App - README

A simple Todo App with test examples for React Testing Library

This project was bootstrapped with Create React App.

Todo List Kata

Simple Requirements

  1. The user should be able to add a new todo
  2. The user should see a list of existing todos
  3. The user should be able to complete a todo
  4. Completed todos should appear as striked through
  5. The user should be able to delete an existing todo

Advanced Requirements

  1. Completed todos should be displayed at the bottom
  2. The user should be able to hide completed todos
  3. The user should be able to edit an existing todo

Multiple Todo Lists

  1. The user should be able to add a new todo list
  2. The user should see all existing todo lists
  3. The user should be able to switch between existing todo lists

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.