Testing with Jest and Enzyme in a React application (mock out useAsync, action)
Автор: Codeching
Загружено: 2020-02-08
Просмотров: 552
Описание:
In this tutorial I will show you how to use Enzyme and JEST to write unit tests for a React application. We will install Enzyme, configure it and write test cases to test our component in the React application.
We will mock out the useAsync hook from the react-async package and we will mock out an action too.
You can find the starter project source code here: https://lebersoftware.hu/wp-content/u...
The final source code is avaliable here: https://github.com/stylerhun/codechin...
If you're interested, that how the starter project is built up, check my previous video on my channel:
• How to use Docker to dockerize a React app...
------------------------------
Welcome to Codeching channel!
My name is László Leber
Webpage: https://lebersoftware.hu
Facebook: https://www.facebook.com/Codeching-11...
Twitter: / codeching
Instagram: / laszlo_leber
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: