Unit testing NestJS applications with Jest
NestJS makes unit testing approachable through dependency injection. Follow a real service test from the first mock to the final assertion with Jest.
I am Maciej Cieslar, a full stack developer writing about Node.js, the browser, and the small details that make software hold together.
Practical writing on the tools I use, the problems I meet, and the parts of the platform worth slowing down for.
NestJS makes unit testing approachable through dependency injection. Follow a real service test from the first mock to the final assertion with Jest.
Docker removes the gap between your machine and production. Build a NestJS development container with a multi stage build, compose services and a working VS Code debugger.
FFmpeg handles the heavy lifting of video processing. Learn how to generate thumbnails and short previews from a video with Node.js and fluent ffmpeg.
JSONP is a relic that once solved cross origin requests. Here is how the script tag trick works, how to implement it and why CORS replaced it.
ES6 proxies intercept the fundamental operations of an object. Explore traps for reading, writing and validating data, then make a small cache lazy.
NestJS brings structure to Node services. See how modules, controllers, services and dependency injection fit together and how the CLI and tests support them.
From async patterns to Docker, each topic collects the notes that belong together.