title: Husky Hook does not work properly with Test
body: <p>I'm configuring <code>Husky</code> to block <code>commits</code> if the <code>prettier</code> or <code>eslint</code> accuses both an <code>error</code> or <code>warn</code>, and block the <code>push</code> if it doesn't pass the <code>tests</code>.</p>
  <p>However, when running the <code>test</code>, the <code>test</code> <code>CLI</code> is displayed <strong>(it is in the image below)</strong>, with this, no key works, but I can only finish by clicking with the shortcut <code>ctrl+z</code>, <strong>which</strong> <strong>suspends my</strong> <code>push</code>.</p>
  <p><strong>MY CODE IN</strong> <code>.HUSKY</code> <strong>FOLDER:</strong></p>
  <p><strong>pre-commit</strong></p>
  <pre><code>#!/bin/sh
  . &quot;$(dirname &quot;$0&quot;)/_/husky.sh&quot;
  
  yarn prettier-check
  yarn lint-check
  </code></pre>
  <p><strong>pre-push</strong></p>
  <pre><code>#!/bin/sh
  . &quot;$(dirname &quot;$0&quot;)/_/husky.sh&quot;
  
  yarn test
  </code></pre>
  <p><strong>MY</strong> <code>PACKAGE.JSON</code>:</p>
  <pre><code>{
      &quot;name&quot;: &quot;web-whatsapp&quot;,
      &quot;version&quot;: &quot;0.0.0&quot;,
      &quot;private&quot;: true,
      &quot;scripts&quot;: {
          &quot;start&quot;: &quot;react-scripts start&quot;,
          &quot;build&quot;: &quot;react-scripts build&quot;,
          &quot;test&quot;: &quot;react-scripts test&quot;,
          &quot;eject&quot;: &quot;react-scripts eject&quot;,
          &quot;prettier-check&quot;: &quot;prettier --check 'src/**/*.{ts,tsx}'&quot;,
          &quot;prettier-fix&quot;: &quot;prettier --write 'src/**/*.{ts,tsx}'&quot;,
          &quot;lint-check&quot;: &quot;eslint 'src/**/*.{ts,tsx}'&quot;,
          &quot;lint-fix&quot;: &quot;eslint --fix 'src/**/*.{ts,tsx}'&quot;,
          &quot;prepare&quot;: &quot;husky install&quot;
      },
      &quot;dependencies&quot;: {
          &quot;@testing-library/jest-dom&quot;: &quot;^5.11.4&quot;,
          &quot;@testing-library/react&quot;: &quot;^11.1.0&quot;,
          &quot;@testing-library/user-event&quot;: &quot;^12.1.10&quot;,
          &quot;@types/jest&quot;: &quot;^26.0.15&quot;,
          &quot;@types/node&quot;: &quot;^12.0.0&quot;,
          &quot;@types/react&quot;: &quot;^17.0.0&quot;,
          &quot;@types/react-dom&quot;: &quot;^17.0.0&quot;,
          &quot;react&quot;: &quot;^17.0.2&quot;,
          &quot;react-dom&quot;: &quot;^17.0.2&quot;,
          &quot;react-scripts&quot;: &quot;4.0.3&quot;,
          &quot;styled-components&quot;: &quot;^5.2.3&quot;,
          &quot;typescript&quot;: &quot;^4.1.2&quot;,
          &quot;web-vitals&quot;: &quot;^1.0.1&quot;
      },
      &quot;devDependencies&quot;: {
          &quot;@typescript-eslint/eslint-plugin&quot;: &quot;^4.22.0&quot;,
          &quot;@typescript-eslint/parser&quot;: &quot;^4.22.0&quot;,
          &quot;eslint&quot;: &quot;^7.24.0&quot;,
          &quot;eslint-config-airbnb&quot;: &quot;^18.2.1&quot;,
          &quot;eslint-config-prettier&quot;: &quot;^8.2.0&quot;,
          &quot;eslint-plugin-import&quot;: &quot;^2.22.1&quot;,
          &quot;eslint-plugin-jest&quot;: &quot;^24.3.5&quot;,
          &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.4.1&quot;,
          &quot;eslint-plugin-prettier&quot;: &quot;^3.3.1&quot;,
          &quot;eslint-plugin-react&quot;: &quot;^7.23.2&quot;,
          &quot;eslint-plugin-react-hooks&quot;: &quot;^4.2.0&quot;,
          &quot;eslint-plugin-testing-library&quot;: &quot;^4.0.1&quot;,
          &quot;husky&quot;: &quot;^6.0.0&quot;,
          &quot;lint-staged&quot;: &quot;^10.5.4&quot;,
          &quot;prettier&quot;: &quot;^2.2.1&quot;
      },
      &quot;browserslist&quot;: {
          &quot;production&quot;: [
              &quot;&gt;0.2%&quot;,
              &quot;not dead&quot;,
              &quot;not op_mini all&quot;
          ],
          &quot;development&quot;: [
              &quot;last 1 chrome version&quot;,
              &quot;last 1 firefox version&quot;,
              &quot;last 1 safari version&quot;
          ]
      }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/mnp4o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mnp4o.png" alt="Problem" /></a></p>