Testing in react featuring: Vite, Vitest, React Testing Library

This project is a simple todo-app made to practice testing. Project utilizes vite, vitest and react-testing-library.

Table of contents

Project startup

Prerequisites

We assume that you have installed:

  • node v14+
  • npm or yarn

Scripts to run

If you want to start application simply run those commands in your terminal.

  • install dependencies
npm install
  • run dev server
npm run dev

Other scripts

  • build
npm run build
  • test
npm run test
  • preview (no config provided yet)
npm run preview

Future goals

  1. Mutation tests using stryker
  2. Fake server using nock or MSW
  3. CI/CD using github actions