Myvideo

Guest

Login

#LETSMEETUP - JavaScript testing: Jest mocks

Uploaded By: Myvideo
2 views
0
0 votes
0

#LETSMEETUP 💬 In this episode, a Senior Frontend Developer at Codete – Magda Kwiecień, will shed some light on using test mocks in one of the most popular JavaScript testing frameworks - Jest. From simple basics to a few lifehacks. You can explore presented examples on Github: Chapters: 0:00 Intro 0:21 What is mock? 0:42 Why do we need mocks? 2:06 Use cases 2:38 () 3:58 () 5:47 () 7:24 Global mocks 8:15 Different function mocks for each test case 9:08 Restore original function for a single test case 9:38 Deal with () hoisting Follow us 👉 Instagram 👉 Join us 👉

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later