Jest .spyOn/jest.fn() Stub Assertion Reference - Code with Hugo - Nov 5th 2019
Hot off the press
Jest .fn() and .spyOn() spy/stub/mock assertion reference: Where other JavaScript testing libraries would lean on a specific stub/spy library like Sinon - Standalone test spies, stubs and mocks for JavaScript.
If you missed it
Jest explicitly or arbitrarily force fail() a test: When testing code with Jest, it can sometimes be useful to fail a test arbitrarily.
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”.
Super-powered newsletter content with Pocket and Netlify Lambda: An example Netlify Lambda to fetch all “newsletter” posts from Pocket.
From the web
What nobody tells you about documentation - Blog - Divio: However hard you work on documentation, it won’t work for your software - unless you do it the right way. They are: tutorials, how-to guides, explanation and technical reference. They represent four different purposes or functions, and require four different approaches to their creation.
HEAD - A free guide to elements: Valid <head>
elements include meta, link, title, style, script, noscript, and base. These elements provide information for how a document should be perceived, and rendered, by web technologies. e.g. browsers, search engines, bots, etc.
On building a personal brand in tech by Forrest Brazeal: Occasionally somebody in the tech world reaches out to me and says “You seem to have a good personal brand, how did you do that?” This question seems to take as an unexamined premise that having a “personal brand” — whatever that is — is a good thing, or worth striving for, which I don