title: mocha command giving ReferenceError: window is not defined
body: <p>I am using command:</p>
  
  <pre><code>mocha --compilers :./test/babel-setup.js --recursive --watch
  </code></pre>
  
  <p>It is giving error:</p>
  
  <pre><code>ReferenceError: window is not defined
  </code></pre>
  
  <p>I have the following in my babel-setup.js:</p>
  
  <pre><code>require("babel/register")({
    compact: false
  });
  </code></pre>
  
  <p>I am using node 0.12.7 and "mocha": "^2.2.5" and "jsdom": "^3.1.2". </p>
  
  <p>I already have <strong>jsdom</strong> installed with the project.</p>
  
  <p>What is causing the error?</p>