title: Module import undefined in jest test file
body: <p>I'm trying to unit test a utility file (util.js) with jest and the file looks like,</p>
  <p>// utils.js</p>
  <pre><code>import { something } from '@whatever/nothing';
  
  export const myMethod = (parameter) =&gt; {
  
      if (!something ) return 0;
      return something.length + parameter.length;
  };
  </code></pre>
  <p>// utils.test.js</p>
  <pre><code>import { myMethod } from '../utils';
  
      test('myMethod', () =&gt; {
          expect(myMethod('whatever').toEqual(12);
      });
  </code></pre>
  <blockquote>
  <p><strong>something is module which is exported with a value of 'temp'.</strong></p>
  </blockquote>
  <p>When I run the test file, <em><strong>something</strong></em> is always <em><strong>undefined</strong></em> and ends up returning <code>0</code>. What is the right way to mock the module '<code>something</code>' inside the test file and make it available in the test run?</p>