Jest Sequential Tests - Code with Hugo - Sep 3rd 2019
Hot off the press
How to run Jest tests sequentially: By default Jest runs tests in parallel with a “a worker pool of child processes that run tests” (Jest CLI docs).
Recent work to leverage Hugo's asset pipeline for both resource bundling and image resizing has been successful. The outcomes are documented in the following thread, codewithhugo.com should now be snappier and less data-hungry (no 1500x1500 images used as thumbnails any more):
https://twitter.com/hugo__df/status/1167788478094041090
I've also bundled up a Simple Analytics (yes that's a referral link, try it out) to Telegram bot, as a Netlify Function that leverages quickchart.io in a Gist: https://gist.github.com/HugoDF/22b1ef7bb54d3b39e0c8ec404cca9532.
Expect a post to follow soon.
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).
An enterprise-style Node.js REST API setup with Docker Compose, Express and Postgres: The why and how of enterprise-style Node.js application.
Yarn Workspaces: monorepo management without Lerna for applications and coding examples: How to use Yarn Workspaces to manage applications/coding examples.
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.
From the web
8 Protips to Start Killing It When Dockerizing Node.js - NodeSource by Tierney Cyren: Containers are the best way to deploy Node.js applications to production. Containers provide a wide variety of benefits, from having the same environment in production and development to streamlining deploys for speed and size. Dockerizing your Node.
Keynote: Anatomy of a Production Kubernetes Outage - Oliver Beattie, Head of Engineering, Monzo Bank by : Keynote: Anatomy of a Production Kubernetes Outage - Oliver Beattie, Head of Engineering, Monzo BankThis talk will dive into a production Kubernetes outage that Monzo experienced a few months ago, its causes and effects, and the architectural and operational lessons learned.
Watch "Adopting Typescript at Scale - Brie Bunge | JSConf Hawaii 2019" on Y by JSConf: Brie Bunge talks about the process AirBnB went through to adopt TypeScript throughout their organization.
Fast Software, the Best Software by roden: I love fast software. That is, software speedy both in function and interface. Software with minimal to no lag between wanting to activate or manipulate something and the thing happening. Lightness. Software that’s speedy usually means it’s focused.