title: Jest.config settings modulePathIgnorePatterns and testPathIgnorePatterns aren't having any effect
body: <p>I'm running tests in a <code>node</code> app using <code>jest</code>. I can get tests running properly, but I can't seem to tell <code>jest</code> to ignore directories. For example, when I try to test a specific file <code>convertExistingImages.ts</code> with the command: <code>npm test convertExistingImages</code> I get a response in my terminal of:</p>
  <pre><code>&gt; mfa-bot-2022@1.0.0 test
  &gt; jest
  
   FAIL  dist/utils/maintenance.ts/convertExistingImages.test.js
    ● Test suite failed to run
  
      Your test suite must contain at least one test.
    (...)
   FAIL  src/utils/maintenance/convertExistingImages.test.ts
    ● Test suite failed to run
    (...)
  </code></pre>
  <p>As you can see, a duplicate file in my <code>/dist</code> folder is also being tested, which I don't want.</p>
  <p>I've tried updating my <code>jest.config.ts</code> file as follows:</p>
  <pre class="lang-js prettyprint-override"><code>module.exports = {
    &quot;preset&quot;: &quot;@shelf/jest-mongodb&quot;,
    &quot;modulePathIgnorePatterns&quot;: [&quot;/build/&quot;],
    &quot;testPathIgnorePatterns&quot;: [&quot;/node_modules/&quot;, &quot;/build/&quot;]
  }
  </code></pre>
  <p>But the <code>modulePathIgnorePatterns</code> and <code>testPathIgnorePatterns</code> settings aren't having any effect.</p>
  <p>Can anyone tell me what I'm doing wrong?</p>