Go Pro Sign Up Login
0 days 0 hrs 0 min 0 sec

Summer Sale

50% off Level Up Pro until you unsubscribe.
Get access to ALL 128 courses on Level Up Tutorials

This is your last chance to get Level Up Pro for $145/year.

or Learn More
Moon Moon

Buy Now and unlock this series

$

39

.99

yours forever

Become a Pro and unlock everything

$

24

.99

per month

Events In React Testing Library

We will now be testing various events in React Testing Library. This is important part of testing because you want to create tests that check the function you created and tell you if that event you wrote had the correct outcome.

Downloads

Become a pro to download code and videos

Comments

bobo

about 1 year ago

I dont understand the eslint adding to globals S:

is it because we are using it in different files?

bobo

about 1 year ago

This course is a gem. Shame there is so much crap on youtube that this gets burried amoungst all the lame money grabing garbage. This is exceptional. A++ thank you

User avatar

Raul

about 2 years ago

@Rodrigo Picanco Good point! It really just depends on what you expect to get out of your tests and how deeply you want your app covered. For the case in the video test/expect is sufficient.

Rodrigo Picanco

over 3 years ago

Hey Scott,

So, I wonder why use the test/expect syntax since the describe/it is way more meaningfull.

What do you think?

Thanks a lot for the amazing content!

Want to join the conversation?

Become a Pro member today!