Unit testing in JavaScript Part 6 – Red, Green, Refactor and Jest mocks
💖 Survey: Please tell me your opinion on this episode
https://funfunfunction.typeform.com/to/sUvfTW?ep=unte6
🔗 Support the show by becoming a Patreon
https://www.patreon.com/funfunfunction
🔗 Watch this series from the start
🔗 Discuss this video on the Fun Fun Forum
https://www.funfunforum.com/t/unit-testing-in-javascript-part-6-red-green-refactor-and-jest-mocks/3480
🔗 Code from the episode
https://github.com/mpj/unit-testing-series/tree/58fd83c3c5be4243c9d0f19a840aae9a6ef4ef86
🔗 That cool inline evaluation plugin
https://quokkajs.com/
🔗 mpj on Twitter
Tweets by mpjme
🔗 The gear I use to produce the videos
🔗 Help translate the show to your language
http://www.youtube.com/timedtext_cs_panel?tab=2&c=UCO1cgjhGzsSYb1rsB4bFe4Q
Today, we are continuing our journey on unit testing in JavaScript. In this episode we do some refactoring, and change our tests to use Jest mock helpers instead of our custom mocks written in vanilla JavaScript.
source