title: How to do test after connection with mongoose to atlas
body: <p>I want to test create user, so after connection to the DB I want to delete all the users that I tested and after it, I want to create new for the test.(Mocha)
  <strong>test_helper.js</strong></p>
  <pre><code>mongoose.connect(uri, { useNewUrlParser: true, useUnifiedTopology: true });
  mongoose.connection
      .once('open', () =&gt; {
          console.log(&quot;connected&quot;)
      })
      .on('error', (error) =&gt; {
          console.warn('Warning', error)
      });
  
  beforeEach((done) =&gt; {
      mongoose.connection.collections.users.drop(() =&gt; {
          done();
      }
      )
  })
  </code></pre>
  <p><strong>create_test.js</strong></p>
  <pre><code>describe('Creating', () =&gt; {
      it('saves a user', () =&gt; {
          const testUser = new User({ name: 'Test' });
          testUser.save();
      });
  });
  </code></pre>
  <p>I am getting the next error
  Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure &quot;done()&quot; is called; if returning a Promise, ensure it resolves.</p>
  <p>what do I miss?</p>