Blog · corpus.blog/blogs/codewithhugo.com/posts
Hugo Di Francesco
codewithhugo.com
2025
18 Aug 2025
11 Aug 2025
TypeScript in the Trenches: Utility types and type manipulation patterns for application developmentoriginal ↗
28 Jul 2025
2024
28 Jul 2024
4 Mar 2024
Mocking/stubbing the Date and timers (setTimeout) in Node.js tests with built-in `node:test` MockTimersoriginal ↗
26 Feb 2024
2022
14 Nov 2022
23 May 2022
2021
9 Jun 2021
2020
17 Nov 2020
17 Aug 2020
20 Jul 2020
22 Jun 2020
How to get type-checking and generate TypeScript Typing declaration (types.d.ts) from JSDoc annotationsoriginal ↗
15 Jun 2020
How to Access Alpine.js Magic Properties from inline handlers and function/component methodsoriginal ↗
1 Jun 2020
JavaScript remove duplicates, get unique/distinct values from Array with ES6+ Set and spreadoriginal ↗
9 May 2020
27 Apr 2020
Integrating Alpine.js with Eleventy & YAML files to create Alpine Playground's Collectionsoriginal ↗
14 Apr 2020
2 Mar 2020
2019
How to integrate Python/Ruby/PHP/shell script with Node.js using child_process.spawn or child_process.execoriginal ↗
16 Oct 2019
29 Sept 2019
2 Sept 2019
26 Aug 2019
5 Aug 2019
Tailwind CSS 1.x impressions, development and production setup for static sites with Tailwind CLI and PurgeCSS CLIoriginal ↗
17 Jun 2019
11 May 2019
Jest assert over single or specific argument/parameters with .toHaveBeenCalledWith and expect.anything()original ↗
29 Apr 2019
24 Apr 2019
Deployment options: Netlify + Dokku on DigitalOcean or Hetzner Cloud vs now.sh, GitHub Pages, Heroku and AWSoriginal ↗
20 Mar 2019
JavaScript Object.defineProperty for a function: create mock object instances in Jest or AVAoriginal ↗
18 Mar 2019
Fix git “tip of your current branch is behind its remote counterpart” - 4 real-world solutionsoriginal ↗
11 Mar 2019
A testing guide for Express with request and response mocking/stubbing using Jest or sinonoriginal ↗
18 Feb 2019
5 Feb 2019