title: Can't use uuid module when running tests with Jest
body: <p>I have a very simple Node.js (<code>12.16.3</code>) application that uses Express <code>4.17.1</code>. I'm trying to use Jest <code>26.0.1</code> to run the test suite, but the same is failing due to some issue with the <code>uuid</code> module (version <code>8.1.0</code>) used across the entire project:</p>
  
  <pre class="lang-sh prettyprint-override"><code>[x80486@uplink:~/Workshop/node-guacamole]$ npm run test 
  
  &gt; node-guacamole@0.3.0 test /home/x80486/Workshop/node-guacamole
  &gt; node --experimental-modules --experimental-vm-modules ./node_modules/.bin/jest --coverage --detectOpenHandles --forceExit --verbose
  
  (node:71155) ExperimentalWarning: The ESM module loader is experimental.
   FAIL  src/domain/customer.test.js
    ● Test suite failed to run
  
      SyntaxError: The requested module 'uuid' does not provide an export named 'v4'
  
        at jasmine2 (node_modules/jest-jasmine2/build/index.js:228:5)
  
   FAIL  src/service/customer.service.test.js
    ● Test suite failed to run
  
      SyntaxError: The requested module 'uuid' does not provide an export named 'v4'
  
            at async Promise.all (index 4)
        at jasmine2 (node_modules/jest-jasmine2/build/index.js:228:5)
  
   FAIL  src/handler/customer.handler.test.js
    ● Test suite failed to run
  
      SyntaxError: The requested module 'uuid' does not provide an export named 'v4'
  
            at async Promise.all (index 2)
            at async Promise.all (index 7)
  
  ----------|---------|----------|---------|---------|-------------------
  File      | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
  ----------|---------|----------|---------|---------|-------------------
  All files |       0 |        0 |       0 |       0 |                   
  ----------|---------|----------|---------|---------|-------------------
  Test Suites: 3 failed, 3 total
  Tests:       0 total
  Snapshots:   0 total
  Time:        0.63 s
  Ran all test suites.
  </code></pre>
  
  <p>I'm importing the module like: <code>import { v4 } from "uuid"</code>; and on the other hand, the application runs successfully:</p>
  
  <pre class="lang-sh prettyprint-override"><code>[x80486@uplink:~/Workshop/node-guacamole]$ npm run start:dev 
  
  &gt; node-guacamole@0.3.0 start:dev /home/x80486/Workshop/node-guacamole
  &gt; nodemon --experimental-modules --experimental-vm-modules ./src/main.js
  
  [nodemon] 2.0.4
  [nodemon] to restart at any time, enter `rs`
  [nodemon] watching path(s): *.*
  [nodemon] watching extensions: js,mjs,json
  [nodemon] starting `node --experimental-modules --experimental-vm-modules ./src/main.js`
  (node:74672) ExperimentalWarning: The ESM module loader is experimental.
  2020-06-03T03:28:48.889Z [debug] - Server running at http://localhost:8080
  2020-06-03T03:28:48.889Z [info] - Press CTRL-C to stop
  </code></pre>
  
  <p>...and everything works fine. I'm puzzled... I don't understand why this fails with Jest only. Is there something else I need to do to make it work?</p>