title: Strapi unit testing with Jest, fails
body: <p>I have a Strapi api and trying to run a unit test</p>
  <p>this is the error in the console I am getting</p>
  <pre><code>yarn test
  yarn run v1.22.5
  $ jest --forceExit --detectOpenHandles
    ●  process.exit called with &quot;1&quot;
  
         8 |   if (!instance) {
         9 |     /** the follwing code in copied from `./node_modules/strapi/lib/Strapi.js` */
      &gt; 10 |     await Strapi().load();
           |     ^
        11 |     instance = strapi; // strapi is global now
        12 |     await instance.app
        13 |       .use(instance.router.routes()) // populate KOA routes
  
        at Strapi.stop (node_modules/strapi/lib/Strapi.js:263:13)
        at node_modules/strapi/lib/Strapi.js:391:16
            at async Promise.all (index 5)
        at Strapi.runBootstrapFunctions (node_modules/strapi/lib/Strapi.js:394:5)
        at Strapi.load (node_modules/strapi/lib/Strapi.js:326:5)
        at setupStrapi (tests/helpers/strapi.js:10:5)
        at Object.&lt;anonymous&gt; (tests/app.test.js:8:3)
  
   RUNS  tests/app.test.js
  error Command failed with exit code 1.
  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  </code></pre>
  <p>I followed these instructions exactly.</p>
  <p>How can I fix this issue?</p>
  <p>Thanks</p>