title: Using Jest I get: Cannot find type definition file for 'jasmine'
body: <p>I am using Angular 7 and Jest. When I was running jest with <code>--codecoverage</code>, all my tests passed but many branches in the constructor were not covered
  (similar to: <a href="https://stackoverflow.com/questions/43215856/branches-on-constructor-not-covered">Branches on constructor not covered</a>).</p>
  <p>I spent quite a lot of time checking everywhere how to solve it and it seemed I had to upgrade <code>jest-preset-angular</code> to version 7. After I did it, all my test suites fail to run with the following message:</p>
  <pre><code>src/app/whatever.component.spec.ts
   ● Test suite failed to run
      
   TypeScript diagnostics (customize using `[jest-config].globals.ts-jest.diagnostics` option):
   error TS2688: Cannot find type definition file for 'jasmine'.
  </code></pre>
  <p>I've been looking around and I tried to apply the solutions I found (such as <a href="https://stackoverflow.com/questions/48047193/cannot-find-type-definition-file-for-jasmine">Cannot find type definition file for &#39;jasmine&#39;</a>, <a href="https://stackoverflow.com/questions/53709410/error-in-error-ts2688-cannot-find-type-definition-file-for-jest">ERROR in error TS2688: Cannot find type definition file for &#39;jest&#39;</a>, ...) but none worked.</p>
  <p>I copy here some of the dependencies I have in package.json:</p>
  <pre><code>    &quot;jest&quot;: &quot;^24.1.0&quot;,
      &quot;jest-junit&quot;: &quot;^6.3.0&quot;,
      &quot;jest-preset-angular&quot;: &quot;^7.0.1&quot;,
      &quot;ts-node&quot;: &quot;~7.0.1&quot;,
      &quot;tslint&quot;: &quot;~5.9.1&quot;,
      &quot;typescript&quot;: &quot;3.2.4&quot;
  </code></pre>
  <p>My previous version was:</p>
  <pre><code>    &quot;jest-preset-angular&quot;: &quot;^6.0.2&quot;,
  </code></pre>
  <p><strong>Update:</strong> I started my project with Angular 6 and Jasmine and I updated it to Angular 7 and Jest. I don't know if this is an important information.</p>