title: Ignore a specific folder pattern in testMatch with Jest
body: <p>I'm trying to ignore a specific folder in the <code>testMatch</code> pattern of Jest.</p>
  <p>I have my tests in a <code>__tests__</code> folder and I want to be able to have a folder <code>__config__</code> into it with all files inside which should be ignored.</p>
  <pre><code>/__tests__
    /__config__
      someConfig.jsx
    /MyComponent.jsx
  /MyComponent.jsx
  </code></pre>
  <p>My tests in the <code>__tests__</code> folder will import the files from the <code>__config__</code> folder so I don't want to ignore them with the <code>transformIgnorePatterns</code>.</p>
  <p>But if I don't ignore the folder, Jest tries to run in the folder and returns an error:</p>
  <blockquote>
  <p>FAIL <code>src/components/__tests__/__config__/someConfig.jsx</code></p>
  <p>Your test suite must contain at least one test.</p>
  </blockquote>
  <p>I've tried a few different patterns but I can't find a way to ignore the <code>__config__</code> folder</p>
  <pre><code>testMatch: [
    &quot;**/__tests__/!(__config__)/**/*.(js)?(x)&quot;, // Doesn't work
    &quot;**/__tests__/(**|!__config__)/*.(js)?(x)&quot;, // Doesn't work
    &quot;**/__tests__/(**|?!__config__)/*.(js)?(x)&quot;, // Doesn't work
    &quot;**/__tests__/{**,!__config__}/*.(js)?(x)&quot;, // Doesn't work
  ],
  </code></pre>
  <p>Any idea how I can ignore the sub-folder like this?</p>