DEV Community

Tomas Trajan 🇨🇭 for Angular

Posted on • Originally published at on


Jest ESM — Total Guide To More Than 100% Faster Testing For Angular⚡

Let's learn how to speed up our Angular Jest tests by more than 100% by switching to Jest ESM (a notoriously problematic migration) and how to solve all the troublesome issues that tend to pop up along the way!


  • Jest is fast until it isn't therefore we have to bother with ESM
  • Basic Jest ESM setup is pretty straight forward
  • There is an ideal Jest ESM scenario where it would just work if libraries implemented ESM correctly
  • In real life Jest ESM breaks because most libs ship incorrect ESM
  • The moduleNameMapper and transformIgnorePatterns are the main tools that will help is to fix all the Jest ESM problems
  • We're going to progress through list of common problems and their solutions (please share yours to make it more complete in the comments)

Continue reading on »

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.