title: Jest globalSetup option not working
body: <p>I'm trying to make a function called loadFixtures available to all Jest tests.</p>
  
  <p>I have the following line within the jest config object inside package.json:</p>
  
  <pre><code>"globalSetup": "&lt;rootDir&gt;/src/test/js/config/setup-globals.js"
  </code></pre>
  
  <p>setup-globals.js contains:</p>
  
  <pre><code>module.exports = function() {
      function loadFixtures(filename) {
          console.info('loadFixtures is working');
      }
  }
  </code></pre>
  
  <p>Within my tests I have, for example:</p>
  
  <pre><code>beforeEach(() =&gt; {
      loadFixtures('tooltip-fixture.html');
  });
  </code></pre>
  
  <p>However when I run Jest I get the following for each test:</p>
  
  <pre><code>ReferenceError: loadFixtures is not defined
  </code></pre>
  
  <p>I verified that the setup-globals.js file is definitely being found and loaded in by Jest before the tests execute.</p>
  
  <p>Can anyone assist in identifying where I've gone wrong here? I've spent pretty much an entire day trying to debug without luck.</p>