Jest .toHaveBeenCalled Assertions - Code with Hugo - Jul 23rd 2019
Hot off the press
Jest assert over single or specific argument/parameters with .toHaveBeenCalledWith and expect.anything(): With Jest it’s possible to assert of single or specific arguments/parameters of a mock function call with .toHaveBeenCalled/.toBeCalled and expect.anything().
I’ve been toying with a new project, there’s prior art in the field (but was discontinued).
I’ve been adding more and more RSS feed subscriptions > Add to Pocket on IFTTT I’m thinking of reviving something like @feedhuddler Would anyone else use this?
If you missed it
Super-powered newsletter content with Pocket and Netlify Lambda: An example Netlify Lambda to fetch all “newsletter” posts from Pocket.
Avoiding recursion pitfalls: MongoDB nested query clause addition and removal: A case-study on where recursion can be useful for enterprise Node.js applications and how to avoid its common pitfalls like RangeError: Maximum call stack size exceeded.
An enterprise-style Node.js REST API setup with Docker Compose, Express and Postgres: The why and how of enterprise-style Node.js application.
Jest exclude file/function/statement from test coverage: In computer science, test coverage is a measure used to describe the degree to which the source code of a program is executed when a particular test suite runs.
From the web
API Gateways Are Going Through an Identity Crisis by : API Gateways are going through a bit of an identity crisis these days. Are they centralized, shared resources that facilitate the exposure and governance of APIs to external entities?
Intro Guide to Dockerfile Best Practices by Tibor Vass: There are over one million Dockerfiles on GitHub today, but not all Dockerfiles are created equally.
No CS Degree by Pete: In 2018 Harry Dry went viral with his Kanye West fans dating website. I interviewed Harry to find how he taught himself to code, tips for newbie coders, how he builds under pressure