Test React components with React Testing library & Jest

preview_player
Показать описание
Learn how to use React Testing library with Jest in order to test React components and functionalities of web applications. In this tutorial we are going to cover both integration and unit tests by using queries, fireEvent, mocking components' methods and global fetch method etc.

Рекомендации по теме
Комментарии
Автор

this is by far the most in depth testing I've had encountered. Super thorough, especially the way you approached fetch Mock data

Ebizzill
Автор

I'm hating testing right now! Thanks for the video though

horacinis
Автор

I'm getting a ` Warning: An update to Steps inside a test was not wrapped in act(...).` how should i fix it ?

Ebizzill
Автор

so is this "Unit Testing" or "Integration Testing" ?

Vikram
Автор

I'm half way through this video and you've spent 5x more time creating the UI/JSX than you have actually testing. I thought the main purpose of this video was React Testing Library and Jest.

Also I would suggest increasing the view (font size) of your IDE for future videos as it's easier for the viewer to read.

dylan