title: Invalid testPattern --config=jest.config.js with react-scripts with Mono Repo
body: <p>I am trying to set a custom jest.config to react-scripts via:</p>
  <p><code>&quot;test&quot;: &quot;react-scripts test -- --config=jest.config.js&quot;,</code></p>
  <p>I feel it is important to mention that I have a mono repo.</p>
  <p>However this has created the following error:</p>
  <pre><code>Invalid testPattern --config=jest.config.js|--watch|--config|{&quot;roots&quot;:[&quot;&lt;rootDir&gt;/src&quot;],&quot;collectCoverageFrom&quot;:[&quot;src/**/*.{js,jsx,ts,tsx}&quot;,&quot;!src/**/*.d.ts&quot;],&quot;setupFiles&quot;:[&quot;/var/www/tractable/property-estimating/node_modules/react-app-polyfill/jsdom.js&quot;],&quot;setupFilesAfterEnv&quot;:[&quot;&lt;rootDir&gt;/src/setupTests.ts&quot;],&quot;testMatch&quot;:[&quot;&lt;rootDir&gt;/src/**/__tests__/**/*.{js,jsx,ts,tsx}&quot;,&quot;&lt;rootDir&gt;/src/**/*.{spec,test}.{js,jsx,ts,tsx}&quot;],&quot;testEnvironment&quot;:&quot;jsdom&quot;,&quot;testRunner&quot;:&quot;/var/www/tractable/property-estimating/node_modules/jest-circus/runner.js&quot;,&quot;transform&quot;:{&quot;^.+\\.(js|jsx|mjs|cjs|ts|tsx)$&quot;:&quot;/var/www/tractable/property-estimating/node_modules/react-scripts/config/jest/babelTransform.js&quot;,&quot;^.+\\.css$&quot;:&quot;/var/www/tractable/property-estimating/node_modules/react-scripts/config/jest/cssTransform.js&quot;,&quot;^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)&quot;:&quot;/var/www/tractable/property-estimating/node_modules/react-scripts/config/jest/fileTransform.js&quot;},&quot;transformIgnorePatterns&quot;:[&quot;[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$&quot;,&quot;^.+\\.module\\.(css|sass|scss)$&quot;],&quot;modulePaths&quot;:[&quot;/var/www/tractable/property-estimating/frontend/claim-handler/src&quot;],&quot;moduleNameMapper&quot;:{&quot;^react-native$&quot;:&quot;react-native-web&quot;,&quot;^.+\\.module\\.(css|sass|scss)$&quot;:&quot;identity-obj-proxy&quot;},&quot;moduleFileExtensions&quot;:[&quot;web.js&quot;,&quot;js&quot;,&quot;web.ts&quot;,&quot;ts&quot;,&quot;web.tsx&quot;,&quot;tsx&quot;,&quot;json&quot;,&quot;web.jsx&quot;,&quot;jsx&quot;,&quot;node&quot;],&quot;watchPlugins&quot;:[&quot;jest-watch-typeahead/filename&quot;,&quot;jest-watch-typeahead/testname&quot;],&quot;resetMocks&quot;:true,&quot;rootDir&quot;:&quot;/var/www/tractable/property-estimating/frontend/claim-handler&quot;}|--env|/var/www/tractable/property-estimating/node_modules/jest-config/node_modules/jest-environment-jsdom/build/index.js supplied. Running all tests instead.
  </code></pre>
  <p>Versions</p>
  <pre><code>&quot;react-scripts&quot;: &quot;4.0.3&quot;,
  </code></pre>