title: What are the steps to follow to debug memory leak in Jest?
body: <p>My tests in Jest seem to be leaking :</p>
  
  <p><a href="https://i.stack.imgur.com/YCcMo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YCcMo.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/IMDhK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/IMDhK.png" alt="enter image description here"></a></p>
  
  <p><strong>What are the recommanded steps to debug that kind of issue?</strong> </p>
  
  <p>I'm new to that kind of problem. As you can see, I have tried passing in <a href="https://jestjs.io/docs/en/cli.html" rel="noreferrer">the options documented in Jest</a> (--forceExit --detectOpenHandles --runInBand --logHeapUsage), but that does not solve my problem.</p>