title: Testing with enzyme and mocha -- "Unexpected token import"
body: <p>I'm trying to run the Enzyme/Mocha example project at <a href="https://github.com/lelandrichardson/enzyme-example-mocha" rel="nofollow">https://github.com/lelandrichardson/enzyme-example-mocha</a>. I cloned the project off of Github and ran <code>npm install</code>. When I ran <code>mocha</code> without making any other changes to the project, this is the output I received:</p>
  
  <pre><code>/Projects/enzyme-example-mocha/test/Foo-test.js:1
  (function (exports, require, module, __filename, __dirname) { import React from 'react';
                                                                ^^^^^^
  SyntaxError: Unexpected token import
      at exports.runInThisContext (vm.js:53:16)
      at Module._compile (module.js:511:25)
      at Object.Module._extensions..js (module.js:550:10)
      at Module.load (module.js:456:32)
      at tryModuleLoad (module.js:415:12)
      at Function.Module._load (module.js:407:3)
      at Module.require (module.js:466:17)
      at require (internal/module.js:20:19)
  </code></pre>
  
  <p>My <code>node --version</code> is <code>v6.1.0</code> and my <code>mocha --version</code> is <code>2.4.5</code>.</p>
  
  <p>How do I get this project to transpile into something Node/Mocha can run? Thanks.</p>