Skip to content

bahmutov/react-todo-with-hooks

Repository files navigation

react-todo-with-hooks CircleCI Cypress version cypress-react-unit-test version renovate-app badge

End-to-end and component tests using Cypress and cypress-react-unit-test, read My Vision for Component Tests in Cypress.

App component test

Example application copied from codesandbox from blog post How To Build a React To-Do App with React Hooks.

Test Description
cypress/integration/todo.spec.js End-to-end test against application running at localhost:3000
src/Todo.spec.js Component test for Todo exported from src/App.js
src/TodoForm.spec.js Component test confirming TodoForm ignores empty input
src/App.spec.js Component test for App and unit test for toggleOneTodo exported from src/App.js

Tests capture code coverage (via cypress-react-unit-test), see created folder coverage.