Test Automation Experience

Testing Fundamentals, Mocking, Vitest, and More

Nikolay Advolodkin Season 1 Episode 71

Ever wondered how to master mocking in JavaScript and elevate your automated testing skills? 


In this episode of Test Automation Experience, Nikolay sits down with Artem Zakharchenko, a renowned expert with over 3 million downloads of his Mock Service Worker. Artem unveils the secrets behind his success and takes us through his journey at Epic Web Dev, sharing insights from his comprehensive workshops on testing fundamentals and advanced mocking techniques.



CONNECT WITH ARTEM ZAKHARCHENKO:

✅Artem’s GitHub: https://github.com/kettanaito

✅Artem’s Personal Website: https://kettanaito.com/ 

✅Artem’s X: https://twitter.com/kettanaito   
✅EpicWeb Workshop:
https://www.epicweb.dev/workshops/testing-fundamentals 

✅Artem’s EpicWeb Contributors Page: https://www.epicweb.dev/contributors/artem-zakharchenko 


CONNECT WITH NIKOLAY ADVOLODKIN          

🌎 WEBSITE: https://ultimateqa.com         

🐦 X: https://X.com/Nikolay_A00 

💡 LINKEDIN (consider leaving a Recommendation): https://www.linkedin.com/in/nikolayadvolodkin/   

👨‍💻 GITHUB: https://github.com/nadvolod 

✨ TIKTOK: https://www.tiktok.com/@nikolay.advolodkin/  

📸 INSTAGRAM: https://www.instagram.com/nikolay.advolodkin/ 

📧 EMAIL: nikolay@saucelabs.com 

JOIN THE CONVERSATION!              

🎥 Subscribe to our YouTube channel now and get access to the latest exclusive shows, before anyone else!  https://www.youtube.com/@test-automation-experience 

▶ Sauce YouTube channel:  https://www.youtube.com/@SauceLabs_Official    

 ‍🤝‍  Community page: https://saucelabs.com/community        

🏠 Home Page: https://saucelabs.com/




00:00 Intro

04:23 Test a React Component in 60 seconds

5:44 One big mistake developers make that effect their carrer

09:33 Unit test mocking  

11:17 Artem's Testing Fundamentals workshop  

16:14 Implementation of beforeAll and afterAll functions  

17:57 Abstracting repetitive test setups  

20:02 Vite's benefits and features  

22:56 Use of Vite Test in conjunction with Vite  

25:20 Explicit and straightforward test assertions  

27:26 Mocking the date and time in tests  

29:17 Setting up controlled date values in tests  

31:05 Mocking nextTick function  

34:23 Context-dependent nature of mocking  &l