Mocha only running one test file : <p>My Mocha tests were working fine, but when I added a new module (and test), mocha stopped running all of my test files and now only runs the single new test.</p>

<p>My test script:</p>

<pre><code>env NODE_PATH=$NODE_PATH:$PWD/src mocha --recursive --compilers js:babel-core/register src/**/*.test.js --require babel-polyfill
</code></pre>

<p>My project is structured like this:</p>

<pre><code>/src
  /components
    /component-name
      index.js
      component.js
      component-name.test.js
      style.scss
  /util
    /module-name
      index.js
      module-name.test.js
  /some-other-module
    index.js
    some-other-module.test.js
</code></pre>

<p>I had several tests in <code>/components</code> and <code>/util</code> and everything worked fine, but when I place a module into <code>/src</code> (like <code>/some-other-module</code>) with a <code>.test.js</code> file in it, Mocha only runs that test file and none of the others.</p>
