title: Using mocha chai with Nodejs error: no test specified
body: <p>I am trying to set up Mocha and Chai for the first time. However, I am getting error message: "No test specified" when I type "npm run test" on the command line. In my package.json file, I have:</p>
  
  <pre><code>"scripts": {
      "start": "node server.js",
      "test:":"mocha --compilers js:babel-core/register --require ./test/test_helper.js --recursive"
  </code></pre>
  
  <p>I have a test folder in my root with two files:</p>
  
  <pre><code>// test/testhelper.js
  
  import chai from 'chai';
  import chaiImmutable from'chai-immutable';
  
  chai.use(chaiImmutable);
  </code></pre>
  
  <p>// test/immutablespec.js</p>
  
  <pre><code>import {expect} from 'chai';
  
  describe('immutability', () =&gt; {
  
      describe('a number', () =&gt; {
  
          function increment(currentState){
              return currentState + 1;    
          }
          it('is immutable',() =&gt; {
              let state = 42;
              let nextState=increment(state);
  
              expect(nextState).to.equal(43);
              expect(state).to.equal(42);
  
          });
      });
  });
  </code></pre>
  
  <p>The exact message on my console is </p>
  
  <pre><code>react-hot-boilerplate@1.0.0 test c:\users\owner\react\voting (my root)
  echo 'Error:not test specified'
  </code></pre>
  
  <p>It appears that anything I type in my test script in package.json gets ignored and I get the exact same error msg each time.</p>