title: How can I tell Jest through the command line not to run a certain test file, but run all others?
body: <p>I have three test files, <code>acceptance.test.js</code> <code>routes.test.js</code> <code>snapshots.test.js</code></p>
  
  <p>I want to create an npm script in my package.json that would ignore one of these test files when it's used. I'm trying to use the Jest option <code>--testPathPattern</code> to do this. For example:</p>
  
  <pre><code>  "scripts": {
      "no-snapshots-test": "jest --coverage --testPathPattern=^(?!snapshots).*$"
    }
  </code></pre>
  
  <p>This particular example gives an error of <code>.*$ was unexpected at this time</code> in the terminal, though. I've tried removing .*$ off the end, but that causes my snapshot tests to still run. </p>
  
  <p>What's the correct regex to allow me to specify the file (or files) that I want to ignore? I need to do this in the CLI, so I can't use the Jest config option testPathIgnorePattern.</p>