I've added a new section "Partial module mocking with
jest.requireActual" to Jest Full and Partial Mock/Spy of CommonJS and ES6 Module Imports.
In this section, you'll be able to discern how to use
jest.requireActual to do true partial mocking of a module in Jest.
The Code with Hugo September update is also out:
I can't say I necessarily recommend a $40 book even if I contributed to it, but there it is.
Mocking/stubbing the current Date in Jest tests: There are situations where new Date() or Date.now is used in application code. That code needs to be tested, and it’s always a struggle to remember how to mock/stub or spy on Date.now/new Date with Jest. This post goes through multiple approaches to mocking, stubbing and spying on the date constructor using Jest.
Super-powered newsletter content with Pocket and Netlify Lambda: An example Netlify Lambda to fetch all “newsletter” posts from Pocket.
Tailwind CSS 1.x impressions, development and production setup for static sites with Tailwind CLI and PurgeCSS CLI: Tailwind CSS is “a utility-first CSS framework for rapidly building custom designs”.
Record analytics events with a Zeit "micro" + SQLite3 Node.js application: In order to finally switch off Google Analytics, I need to replace my goal conversion tracking somehow.
Everyone Who Tried to Convince Me to use Vim was Wrong by Yehuda Katz: A couple weeks ago, I took the plunge and switched to vim (MacVIM, to be precise). It wasn't the first time I tried to make the switch, and I had pretty much written it off entirely.
Maccy - clipboard manager for macOS by : Clipboard manager for macOS which does one job - keep your copy history at hand. Period. Lightweight. Open source and free. No fluff.
Watch "Building WebApps Like It's 1972 ?♂️by Leandro Ostera | JSConf EU 20 by JSConf: The year is 1972 and GUI applications like no one has seen before are being built in Smalltalk: bitmaps graphics, draggable elements, drop-down menus, collapsable windows ?; all of them and many more coming straight from the future, powered by asynchronous message passing, object orientation, and