What Is React Testing Library?

What Is React Testing Library?

Syntax

6 лет назад

169,674 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@sohamvishwas6795
@sohamvishwas6795 - 05.05.2024 10:28

Thanks

Ответить
@lucakooistra637
@lucakooistra637 - 18.03.2024 18:04

if this guy is gonna name enzym again, im gonna throw something

Ответить
@notreallyasloth
@notreallyasloth - 31.12.2023 16:01

omg i need that javascript seinfeld sticker

Ответить
@iiillllyyyyaaa
@iiillllyyyyaaa - 13.08.2023 09:52

Just tell me the list off libs i need to install to run tests on react.

Ответить
@theanswer1993
@theanswer1993 - 20.02.2023 13:29

Isn't DOM testing bad and slow. Class testing with simple unit tests is so fast in comparison.

Ответить
@giaotran2018
@giaotran2018 - 20.05.2022 20:58

Just started diving into the React Testing Library and this was an excellent introductory video. Thanks!

Ответить
@erichartford4035
@erichartford4035 - 10.03.2022 21:13

what font is this

Ответить
@Soultaker228
@Soultaker228 - 06.03.2022 02:48

What's your microphone setup? It sounds amazing.

Ответить
@parthbhushan8458
@parthbhushan8458 - 25.02.2022 18:42

Do you know if react-testing-library works both with electron and web based react app?

Ответить
@jasonpmerrigan
@jasonpmerrigan - 12.12.2021 13:58

Thank you :)

Ответить
@sarvarkhalimov111
@sarvarkhalimov111 - 22.07.2021 15:39

Great tutorial. Thank you)

Just one note: my headphone was plugged in and actual audio was too loud at the beginning, even though it was set to below average. I almost lost hearing))

Ответить
@codercodercoder5977
@codercodercoder5977 - 14.07.2021 18:14

you got me bro.. you got me... well played.. you got take it take my money sir

Ответить
@codercodercoder5977
@codercodercoder5977 - 14.07.2021 18:11

where is the movie one i need that please

Ответить
@stephanieraymos4675
@stephanieraymos4675 - 10.03.2021 20:46

Thanks for the video. Where did you get your stickers?!

Ответить
@bhawkinsish
@bhawkinsish - 19.01.2021 01:17

I went to buy this course and apparently it's no longer offered which is kind of a debbie downer. Scott, is there anywhere to purchase this that I am missing?

Ответить
@olegmaz3969
@olegmaz3969 - 18.08.2020 18:23

Is Jest and Enzyme outdated ?

Ответить
@rjk1833
@rjk1833 - 23.05.2020 15:11

Go Blue!

Ответить
@gopalmandloi6374
@gopalmandloi6374 - 12.05.2020 09:08

It works with jest right?, How can we use cypress along with it, one of my friend told me to use cypress along with it, I am not getting what cypress do here in these?

Ответить
@LegendarySkyHero
@LegendarySkyHero - 07.05.2020 08:55

Is react testing library the same as Jest? or are they two seperate libraries? Help im so confused!

Ответить
@VUnhac
@VUnhac - 05.03.2020 13:00

Sounds good on paper but when reality hit you its doesnt look so good any more. 90% of components in most apps are composite components (components built with other components)testing those with Testing Library promoted approach are super repetitive and completely unnecessary.

Ответить
@kjn5991
@kjn5991 - 04.03.2020 16:50

So would you say that React Testing Library is better for testing events in function components, compared to Enzyme?

Let's say I have a state in function component App.js, I pass the state and setState function as props to TodoItemList.js which renders group of TodoItem components by mapping the array in state, then each of the TodoItem components receive the state and setState as props.

Inside TodoItem I have a click event that updates the state.

With Enzyme's shallow and mount methods, I can't test the click event because it requires the state from parent component.
Only way was to mount the App.js component to get the state and then find the event button from the wrapper.
But this defeats the purpose of testing the single component since I had to drill through the parent components.

Ответить
@pronyCJ
@pronyCJ - 07.11.2019 15:53

just started the series man! all i gotta say is love the beginner friendly content!

Ответить
@dkimmel5214
@dkimmel5214 - 31.08.2019 20:15

You abandoned Meteor.js ... TRAITOR! :P

Ответить
@09lz90
@09lz90 - 09.08.2019 22:52

Hello, I have a question. If I use component library like Fabric UI or Material UI, and I don't really know what my DOM looks like, can I still test with react-testing library?

Ответить
@LosEagle
@LosEagle - 27.06.2019 15:39

It looks great from client's perspective but as a developer, I want my code to be as robust as possible. It's really nice to test what that components render but not at the cost of testing code stability. This is why I'm sticking to classic Jest unit tests and testing function input/output.

Ответить
@stannone7272
@stannone7272 - 21.06.2019 23:21

he seems to really like the react testing library

Ответить
@bobo-lc4yi
@bobo-lc4yi - 26.12.2018 12:25

Thanks, you really helped me

Ответить
@WillemAartVanDorpen
@WillemAartVanDorpen - 30.08.2018 23:57

Kent C. Dodds touches on a valid point with this library. I'm all for encouraging good practices.

However, why didn't he just make an abstraction (subset) of Enzyme's battle-tested library? Why create the entire thing from scratch instead of using an established foundation to build off of? The adoption rate of his testing library would probably benefit from having industry-standard tool as a base.

Don't get me wrong, I'm not questioning Kent's skills, as he is obviously a very talented developer and teacher. Really like the things he's doing. Hope he will keep that good work up.

Ответить
@ezadviper
@ezadviper - 30.08.2018 15:42

Hi, can you do Codeigniter tutorials ?

Ответить
@stevereid636
@stevereid636 - 30.08.2018 15:40

Wow! excellent headsup. I'm definitely going to be hitting up Scott's testing course this weekend!

Ответить
@hobbyhub-91
@hobbyhub-91 - 30.08.2018 11:55

Hey kent mentioned u in his live stream :)

Ответить
@billpliske
@billpliske - 30.08.2018 07:16

Nice Pens mug, Scott! :-)

Ответить
@gaos94
@gaos94 - 30.08.2018 04:28

I really need to get better at testing, looking forward to get the pro license to get better at it

Ответить