Unit testing in JavaScript Part 4 β Mocking basics
Today, we are continuing our journey on unit testing in JavaScript. In this episode we look at doing some basic mocking of fetch.
Full video below:
π Support the show by becoming a Patreon
https://www.patreon.com/funfunfunction
π Watch this series from the start
https://www.youtube.com/watch?v=Eu35xM76kKY&index=1&list=PL0zVEGEvSaeF_zoW9o66wa_UCNE3a7BEr
π Code snippets from the episode
https://gist.github.com/mpj/2906d711a5d9fac5443ffa25e7e77e35
π Discuss this video on the Fun Fun Forum
https://www.funfunforum.com/t/unit-testing-in-javascript-part-4-mocking-basics/3387
π Promises video
https://www.youtube.com/watch?v=2d7s3spWAzo&list=PL0zVEGEvSaeEd9hlmCXrk5yUyqUag-n84&index=8
π Dependency Injection basics video
https://www.youtube.com/watch?v=0X1Ns2NRfks
π That cool inline evaluation plugin
https://quokkajs.com/
π mpj on Twitter
https://twitter.com/mpjme
π The gear I use to produce the videos
https://youtu.be/gTk8nPj11Yk
π Help translate the show to your language
http://www.youtube.com/timedtext_cs_panel?tab=2&c=UCO1cgjhGzsSYb1rsB4bFe4Q