title: Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" when using Mocha for test in nodejs
body: <p>i want to write a test for test <code>createUser</code> .</p>
  <p>i write this code :</p>
  <pre><code>const User = require(&quot;../src/Entite/User&quot;);
  
  describe(&quot;Create User&quot;, () =&gt; {
    it(&quot; Save and Create User &quot;, (done) =&gt; {
      const addUser = new User({
        name: &quot;Kianoush&quot;,
        family: &quot;Dortaj&quot;,
      });
      addUser
        .save()
        .then(() =&gt; {
          assert(!addUser.isNew);
          done();
        });
    });
  });
  </code></pre>
  <p>when i run the test use was created in database but it show me this error and test fail :</p>
  <p>Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure &quot;done()&quot; is called; if returning a Promise, ensure it resolves. (F:\Projects\Nodejs\MongooDB\test\create-user_test.js)
  at listOnTimeout (internal/timers.js:549:17)
  at processTimers (internal/timers.js:492:7)</p>
  <p><strong>whats the problem ? how can i solve that ??</strong></p>