robertaird / react-testing-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React testing examples

Examples of testing in React. Run with npm test

Examples

Date

Testing components involving dates.

Fetch

Testing without mocking fetch, including error handling. Includes hook testing and a mocked server

MinimalApi

Testing using dependencies without obvious entry points

Routes

Testing react-router-dom routes, including pattern matching

useEffect

Testing delayed useEffects

About


Languages

Language:TypeScript 91.5%Language:HTML 8.5%