/react-tdd

Dummy example for the TDD in React.js tutorial.

Primary LanguageTypeScript

TDD in React.js

Vite.js 4, React.js 18, and Node.js 18

In this example, we defined some stories and implemented them by building a dummy component following a fully TDD workflow. This is not a real app.

More: https://www.jh.tn/blog/react-tdd

Docker

  • docker compose up --no-start to build images from docker compose file
  • docker compose up development to run the app (offline) using Docker
  • docker compose up test to run tests using Docker

Local Development

  • npm install for local installation
  • npm run test to run tests locally
  • npm run dev to run the dummy app locally