Discover · danlew.net

How to use Jest mocks

Dan Lew Codes danlew.net

For better or worse, my life has become infested by Jest mocks.

I come from the land of dependency injection (I even gave a talk once!), but whenever I talk about dependency injection to JavaScript developers I get this reaction:

More ways to use this
Open on another device
Scan this QR code to open the same public page

Scan to open this page. Your saved notes and account access are not included.

Download QR code

Open the page link

Named in it

Keep going

Each of these is read from what this estate already kept: the feed a piece came through, the publisher behind it, the credits and topics the publisher printed. None of it is a recommendation, an identity or a record kept anywhere else.

Also from Dan Lew Codes

  1. My life before & after automated testingDan Lew danlew.net
  2. Nitpicking in code reviews wastes timeDan Lew danlew.net
  3. There's more to software development than codingDan Lew danlew.net
  4. Obfuscated Rhythm GamesDan Lew danlew.net
  5. What the fuck are passkeys and why are they everywhere now?Dan Lew danlew.net
  6. Don't Cite Unsold eBay Listing PricesDan Lew danlew.net