title: How to use jest.config.js with create-react-app
body: <p>I would like to move my jest config out of my package.json, i am trying to use the --config as suggested <a href="https://jestjs.io/docs/en/configuration" rel="noreferrer">here</a> but get the error <code>argv.config.match is not a function</code></p>
  
  <h1>package.json</h1>
  
  <pre><code>  "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test --config jest.config.js",
      "eject": "react-scripts eject",
    },
  </code></pre>
  
  <h1>cli</h1>
  
  <pre><code>hutber@hutber-mac:/var/www/management/node$ npm test -u
  
  &gt; management-fresh@0.1.0 test /var/www/management/node
  &gt; react-scripts test --config jest.config.js
  
  Usage: test.js [--config=&lt;pathToConfigFile&gt;] [TestPathPattern]
  
  
  argv.config.match is not a function
  npm ERR! Test failed.  See above for more details.
  </code></pre>