Skip to content

Basic examples for unit testing in React utilizing react-testing-library

Notifications You must be signed in to change notification settings

shanil07/react-unit-testing-intro

Repository files navigation

React unit testing intro

Small project with common conventions and tests written to test react components, context and hooks

To run this project

  1. Ensure node is installed (>= v16 suggested)

  2. Requires yarn package manager npm instal yarn

  3. Install dependencies yarn

  4. Run project

// For local dev server
yarn dev

// run all test
yarn test

// run in watch mode: run tests on files that have changed and its dependents
yarn test --watch

// produce coverage report
yarn test --coverage


Project created using Vite react + typescript template

About

Basic examples for unit testing in React utilizing react-testing-library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published