JavaScript Jabber cover image

JSJ 411: Unit Testing Jest with Daniel Caldas

JavaScript Jabber

00:00

How to Mock and Stuff a Module in VS Code

I've had mocks and stubs get out of hand where it starts to get hard to keep track of what is I guess there by default and what's being mocked out so how do you keep all of that straight? Yeah so that's a problem that I I've been debating myself especially when you have this like not big modules but that have like a huge a huge a bunch of dependencies. If you're using VS code configure the debugger with the with the just just extension which is pretty cool set up a breakpoint in wherever line you can look at the modules that appear on your scope. This might seem like very simple but it's like it saved me like a lot of time when

Play episode from 31:53
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app