Advanced Jest Kickoff - Code with Hugo - Oct 8th 2019
I'm working on an Advanced Jest Guide to save everyone time when faced with non-trivial Jest issues.
Jest is super powerful and has really nifty features that are underused which give you superpowers.
This is in addition to the book I've been co-authoring, "Professional JavaScript" being published with Packt. I've learnt a lot from that experience and hopefully I can put those new skills to good use in this project.
Hot off the press
How to run, ignore or skip Jest tests, suites and files: When debugging or writing units tests with Jest it can be useful to specify a single file or test to run or to exclude a specific failing test for the Jest run.
https://twitter.com/hugo__df/status/1179062289246367745
If you missed it
Detect if the current file/module is the entrypoint or import/require-d in Node.js: How does one identify whether a JavaScript file is being run directly (node file.js) or it’s being import/require-d (require('./file') in another JS file).
Jest Full and Partial Mock/Spy of CommonJS and ES6 Module Imports: The example repository is available at github.com/HugoDF/mock-spy-module-import.
Super-powered newsletter content with Pocket and Netlify Lambda: An example Netlify Lambda to fetch all “newsletter” posts from Pocket.
An enterprise-style Node.js REST API setup with Docker Compose, Express and Postgres: The why and how of enterprise-style Node.js application.
From the web
Watch "Promises API in Node.js core: where we are and where we’ll get to by by JSConf: Currently only ‘fs’ and ‘dns’ have an experimental promise api in Node core. People LOL at node.js core modules for still using the callback pattern. I could launch into a bunch of puns here but instead I’ll just say the current status is sad but fixable. Where are we? What do we need to d
The Cult of Kubernetes - Christine Dodrill by Christine Dodrill: The world was once a simple place. Things used to make sense, or at least there weren’t so many layers that it became difficult to tell what the hell is going on. Then complexity happened. This is a tale of how I literally recreated this meme:
How much faster is Redis at storing a blob of JSON compared to PostgreSQL? by : In Song Search when you've found a song, it loads some affiliate links to Amazon.com. (In case you're curious it's earning me lower double-digit dollars per month).
Thoughts on JavaScript Thunks by Ariel Hyman: JavaScript is a single-threaded synchronous language, yet dealing with asynchronous behavior is a huge part of development. How can we as web developers create a truly interactive and dynamic user experience if we don’t consider: