Our great sponsors
-
react-hooks-testing-library
🐏 Simple and complete React hooks testing utilities that encourage good testing practices.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
For testing the hook logic I will be using the react-hooks-testing-library which allows me to test my hook without having to wrap it with a component. Makes the tests a lot more easy to maintain and focused.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- Domain Layer and React? Decorators to the Rescue!
- what's your take on the tdd approach? how are tests tested ?
- Testing Functions within Functional React Components
- Testing modern ReactJS Application: Unit Testing(Part 2)
- Writing useful custom React hooks with TypeScript and testing them with React Testing Library