ReactJS Component testing for beginners. Snapshots, Enzyme, coverage reports and more.

preview_player
Показать описание
A basic example of component testing in React using Istanbul coverage reports, Enzyme shallow rendering, and Jest Snapshots.

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

This is the best video to learn react testing

shivamkansal
Автор

This video should have way more views. Great job, man!

ViniCavin
Автор

Great video! It would be great if you could create video for testing stores and redux

chetna
Автор

Great lesson and nice demo ... everything is working fine just the "open:coverage", says 'open' is not recognized as an internal or external command

Marketblank
Автор

Great tutorial, thanks for explaining details

TheOfficialSuncrown
Автор

this is very helpful, I wish you can do more of these testing videos ! love it

some ideas on your next videos:
- How to write Test Driven/Test First code
- How to test redux components
- How to test a curried functions (you curried a function in this video)

bryanchan
Автор

Damn... this was an awesome video. Thanks a ton!

slablife
Автор

i tried all the transformer.js babelrc, webpack.config.js and even jest.config.js still css is not ignored in testing

tooshar
Автор

Can't get what's the point of directly calling React lifecycle methods in test through the wrapper instance. Aren't you testing the implementation instead of what the user actually see and interact with? What if tomorrow you decide (for example) to refactor your component from class to function/hooks? In that case, you're gonna need to rewrite your test from scratch, arent' you?

miocognatoesteve