Shift3 / standards-and-practices

Standards and Practices for Bitwise Industries
https://shift3.github.io/standards-and-practices/
63 stars 41 forks source link

doc(react): Add link to React Hooks Testing Library #325

Closed AramayisO closed 2 years ago

AramayisO commented 2 years ago

Changes

  1. Added a link to React Hooks Testing Library to the list of testing tools in standards-and-practices/best-practices/client-side/framework/react/

Purpose

Testing custom hooks in React is complicated as you have to write function components solely for testing these hook. The React Hooks Testing Library simplifies testing custom hooks by allowing you to create a simple test harness for React hooks that handles running them within the body of a function component, as well as providing various useful utility functions for updating the inputs and retrieving the outputs of your custom hooks.

Testing Steps

  1. Go to the standards-and-practices/best-practices/client-side/framework/react/ directory.
  2. Check that there is a link to the React Hooks Testing Library in the list of unit testing tools.
  3. Ensure that the link takes you to the docs of the React Hooks Testing Library.

Closes #324