title: Jest - Find related tests and run them on `pre-commit` Hook
body: <p>I have Jest as my Test Runner. I also have husky in my commit hook. I want to run on every commit, the tests that are affected by my changes and related ones.</p>
  <p>I see in the documentation for Jest the following options, but I am not making progress on making them work:</p>
  <pre><code>--findRelatedTests -&gt; To find the related test to my changes 
  --testPathPattern -&gt; To execute tests only on specific folders
  </code></pre>
  <p>Do you have a documentation or any examples that could be helpful. Or explain to me how I could achieve that.? Thanks!!</p>