title: Cannot find name 'it' in Jest TypeScript
body: <p>I try to create an intial setup for Jest in React + TypeScript. I have completed the initial setup and try to check whether the test runs.
  When I run the test using the command <code>npm test</code>, I am getting the following error:</p>
  <pre><code>Cannot find name 'it'. Do you need to install type definitions for a test runner? Try `npm i @types/jest` or `npm i @types/mocha`.
  </code></pre>
  <p>I have installed the types for Jest as well as removed the types in <code>tsconfig.json</code>, but still I am getting the same error.</p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      &quot;target&quot;: &quot;es6&quot;,
      &quot;lib&quot;: [&quot;dom&quot;, &quot;dom.iterable&quot;, &quot;esnext&quot;],
      &quot;allowJs&quot;: true,
      &quot;skipLibCheck&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;allowSyntheticDefaultImports&quot;: true,
      &quot;strict&quot;: true,
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;module&quot;: &quot;esnext&quot;,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;plugins&quot;: [{ &quot;name&quot;: &quot;typescript-tslint-plugin&quot; }],
      &quot;resolveJsonModule&quot;: true,
      &quot;isolatedModules&quot;: true,
      &quot;noEmit&quot;: true,
      &quot;jsx&quot;: &quot;preserve&quot;,
      &quot;pretty&quot;: true,
      &quot;baseUrl&quot;: &quot;src&quot;,
      &quot;types&quot;: [&quot;jest&quot;],
      &quot;typeRoots&quot;: [&quot;./src/types&quot;],
      &quot;suppressImplicitAnyIndexErrors&quot;: true
    },
    &quot;include&quot;: [&quot;src&quot;, &quot;node_modules/@types/jest&quot;],
    &quot;exclude&quot;: [&quot;node_modules&quot;]
  }
  `
  
  </code></pre>
  <p>Package.json</p>
  <pre><code>
      &quot;jest&quot;: {
          &quot;transform&quot;: {
            &quot;.(ts|tsx)&quot;: &quot;ts-jest&quot;
          },
          &quot;testRegex&quot;: &quot;(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$&quot;,
          &quot;moduleFileExtensions&quot;: [
            &quot;ts&quot;,
            &quot;tsx&quot;,
            &quot;js&quot;
          ]
        },
        &quot;devDependencies&quot;: {
          &quot;@babel/plugin-proposal-export-default-from&quot;: &quot;^7.2.0&quot;,
          &quot;@types/enzyme&quot;: &quot;^3.9.3&quot;,
          &quot;@types/jest&quot;: &quot;^24.0.14&quot;,
          &quot;enzyme&quot;: &quot;^3.10.0&quot;,
          &quot;gh-pages&quot;: &quot;^1.2.0&quot;,
          &quot;husky&quot;: &quot;^2.2.0&quot;,
          &quot;jest&quot;: &quot;^24.8.0&quot;,
          &quot;node-sass&quot;: &quot;^4.11.0&quot;,
          &quot;prettier&quot;: &quot;^1.17.0&quot;,
          &quot;react-scripts&quot;: &quot;2.1.8&quot;,
          &quot;react-test-renderer&quot;: &quot;^16.8.6&quot;,
          &quot;stylelint&quot;: &quot;^9.3.0&quot;,
          &quot;stylelint-config-recommended-scss&quot;: &quot;^3.2.0&quot;,
          &quot;stylelint-config-standard&quot;: &quot;^18.2.0&quot;,
          &quot;stylelint-order&quot;: &quot;^0.8.1&quot;,
          &quot;stylelint-scss&quot;: &quot;^3.1.3&quot;,
          &quot;ts-jest&quot;: &quot;^24.0.2&quot;,
          &quot;tslint&quot;: &quot;^5.16.0&quot;,
          &quot;tslint-config-prettier&quot;: &quot;^1.18.0&quot;,
          &quot;tslint-plugin-prettier&quot;: &quot;^2.0.1&quot;,
          &quot;tslint-react&quot;: &quot;^4.0.0&quot;,
          &quot;tslint-react-hooks&quot;: &quot;^2.1.0&quot;
        }
  
  </code></pre>