How to solve the Memory Leak problem on Node.js while running Jest

A step-by-step guide to solving the JavaScript heap out-of-memory error while running test cases on Node JS

Gonzalo Fernandez Plaza
5 min readJun 27, 2023

--

A step-by-step guide to solving the JavaScript heap out-of-memory error while running test cases on Node JS
A step-by-step guide to solving the JavaScript heap out-of-memory error while running Jest.

It looked like another typical day, with different deployments. However, we were surprised by a CircleCI error while running some of our E2E test cases. After re-running the…

--

--

Gonzalo Fernandez Plaza

Computer Science Engineer & Tech Lead 🖥️. Publishing AWS & Snowflake ❄️ courses & exams. https://www.fullcertified.com