@funfunfunction
  @funfunfunction
Fun Fun Function | Unit testing in JavaScript Part 4 - Mocking basics @funfunfunction | Uploaded December 2017 | Updated October 2024, 2 hours ago.
πŸ”— Watch this series from the start
youtube.com/watch?v=Eu35xM76kKY&index=1&list=PL0zVEGEvSaeF_zoW9o66wa_UCNE3a7BEr

πŸ”— Code snippets from the episode
gist.github.com/mpj/2906d711a5d9fac5443ffa25e7e77e35

πŸ”— Discuss this video on the Fun Fun Forum
funfunforum.com/t/unit-testing-in-javascript-part-4-mocking-basics/3387

πŸ”— Promises video
youtube.com/watch?v=2d7s3spWAzo&list=PL0zVEGEvSaeEd9hlmCXrk5yUyqUag-n84&index=8

πŸ”— Dependency Injection basics video
youtube.com/watch?v=0X1Ns2NRfks

πŸ”— The gear I use to produce the videos
youtu.be/gTk8nPj11Yk

πŸ”— Help translate the show to your language
youtube.com/timedtext_cs_panel?tab=2&c=UCO1cgjhGzsSYb1rsB4bFe4Q

Today, we are continuing our journey on unit testing in JavaScript. In this episode we look at doing some basic mocking of fetch.

πŸ’› Follow on Twitch and support by becoming a Subscriber
We record the show live Mondays 7 AM PT
twitch.tv/funfunfunction

πŸ’› Fun Fun Forum
Private discussion forum with other viewers in between shows. https://www.funfunforum.com. Available to patron members, become one at patreon.com/funfunfunction

πŸ’› mpj on Twitter
twitter.com/mpjme

πŸ’› Wallaby (Show sponsor)
Wallaby.js runs your JavaScript tests immediately as you type and displays execution results in your code editor. It is insanely fast, because it only executes tests affected by your code changes and runs tests in parallel. Let them know you came from us by using this link:
wallaby.funfunfunction.com

πŸ’› CircleCI (Show sponsor)
Robust and sleek Docker-based Continuous Integration as a service. I used CircleCI prior to them becoming a sponsor and I love that their free tier is powerful enough for small personal projects, even if they are private. Use this link when you sign up to let them know you came from here:
circleci.funfunfunction.com

πŸ’› Quokka (Show sponsor)
Wonder how MPJ evaluates JavaScript inline his editor. Quokka is the answer - use this link when you buy to let them know you came from here:
quokka.funfunfunction.com

πŸ’› FUN FUN FUNCTION
Since 2015, Fun Fun Function (FFF) is one of the longest running weekly YouTube shows on programming πŸ… thanks to its consistency and quality reaching 200,000+ developers.

πŸ€¦β€β™‚οΈ The Failing Together concept is what makes FFF unique. Most coding content out there focus on step-by-step tutorials. We think tutorials are too far removed from what everyday development is like. Instead, FFF has created a completely new learning environment where we grow from failure, by solving problems while intensively interacting with a live audience.

Tutorials try to solve a problem. Failing Together makes you grow as a developer and coworker.

πŸ“Ή Each show is recorded live on Twitch in a 2-hour livestream on Mondays. The host, assisted by the audience, is tasked to complete a programming challenge by an expert guest. Like in the real world, we often fail, and learn from it. This, of course, reflects what the audience identifies with, and is one of the most praised aspects of the show.

⏯ On Fridays, an edited version of the show is adapted for and published on YouTube.

Content Topics revolve around: JavaScript, Functional Programming, Software Architecture, Quality Processes, Developer Career and Health, Team Collaboration, Software Development, Project Management
Unit testing in JavaScript Part 4 - Mocking basicsTeaching programming to children and teachersΒ - Fun Fun Forum SpotlightUML, Cucumber and modeling reality - MPJs Musings - Fun Fun FunctionExpressions versus statements? The future of functional programming (with Steve Krouse)Static types, Hogwarts sorting hat and personality types - Twitch stream highlightasync / await in JavaScript - What, Why and How - Fun Fun FunctionLets code a speed typing game with ReasonML and Comic Sans as editor fontClever tricks to improve video conference communicationAdvanced Dependency Injection without classes - Fun Fun FunctionCelebrating node.js turning 10 years oldFun Fun Function Live StreamGetting started with CircleCI - Continuous Integration P2 - Fun Fun Function

Unit testing in JavaScript Part 4 - Mocking basics @funfunfunction

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER