title: Jest Test function bind
body: <p>How can one bind s.th. to the test function executed by jest?</p>
  
  <p>I want to run the same set of tests twice for different configs, like this:</p>
  
  <pre><code>function wrap(title, fn) {
      [1,2].forEach(x =&gt; {
          this.hello = x
          fn.bind(this)
          fn() // works
          test(title, fn) // does not work
      })
  }
  
  wrap('test hello world', function() {
      console.log('this.hello', this.hello)
  });
  </code></pre>
  
  <p>But <code>this</code> is <code>undefined</code> when run by jest.</p>