title: Is there any way to call a Mocha function including it() and run whatever is inside `it`?
body: <p>I'm trying to call a Mocha function as simple as bellow</p>
  
  <pre><code>this.logSomething = function() {
      console.log('======== outside it ========')
      it('something inside it', function logSomething(done){
          console.log('+++++++ something inside it ++++++++') 
          done()  
      })
  }
  </code></pre>
  
  <p>from another js file.
  After using <code>mocha.run(logSomething())</code></p>
  
  <pre><code>======== outside it ========
  </code></pre>
  
  <p>appears but </p>
  
  <pre><code>+++++++ something inside it ++++++++
  </code></pre>
  
  <p>is missing. </p>
  
  <p>I have tried using 'describe' but the result is the same. Any solutions instead of bypasses?</p>
  
  <p>FYI, I know it can be run by importing it as a Mocha test and using Mocha CLI, however I want to use this method to rerun the failed functions from my test suite, therefore it could be zero or many functions with different names and it's not the simple as importing certain number of Mocha tests.</p>
  
  <p>Also, I have tried Mocha's existing retry and since it doesn't match our tests, I'm not using it.</p>