title: NPM ERR! Test failed - Not able to run test
body: <p>Running a few tests for react js using Jest and Enzyme but one of the files keep breaking. Using Jest and Enzyme </p>
  
  <p>I already cleared the cache , but i keep getting the following :</p>
  
  <p>NPM ERR ! Test failed
  and worker process has quit unexpectedly! Most likely this is aninitialization error</p>
  
  <p>Here is part of the package.json.
  Not really sure how to fix this problem. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>scripts": {
      "start": "node scripts/start.js",
      "start-3001": "set PORT=3001&amp;&amp; node scripts/start.js",
      "start-3002": "set PORT=3002&amp;&amp; node scripts/start.js",
      "build": "node scripts/build.js",
      "test": "node scripts/test.js --env=jsdom --verbose || exit 0"
    },
    "devDependencies": {
      "enzyme-to-json": "^3.3.5",
      "jes": "^0.6.1",
      "jest": "^20.0.4",
      "jest-fetch-mock": "^2.1.2",
      "react-addons-test-utils": "^15.6.2",
      "react-dom": "^15.6.2",
      "react-test-renderer": "^15.5.4"
    },
    "jest": {
       "automock": false, 
      "collectCoverageFrom": [
        "src/**/*.{js,jsx}"
      ],
      "setupFiles": [
        "&lt;rootDir&gt;/config/polyfills.js"
      ],
      "testMatch": [
        "&lt;rootDir&gt;/src/**/__tests__/**/*.js?(x)",
        "&lt;rootDir&gt;/src/**/?(*.)(spec|test).js?(x)"
      ],
      "testEnvironment": "node",
      "verbose": true,
      "testURL": "http://localhost:3000",
      "transform": {
        "^.+\\.(js|jsx)$": "&lt;rootDir&gt;/node_modules/babel-jest",
        "^.+\\.css$": "&lt;rootDir&gt;/config/jest/cssTransform.js",
        "^(?!.*\\.(js|jsx|css|json)$)": "&lt;rootDir&gt;/config/jest/fileTransform.js"
      },
      "transformIgnorePatterns": [
        "[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
      ],
      "moduleNameMapper": {
        "^react-native$": "react-native-web"
      },
      "moduleFileExtensions": [
        "web.js",
        "js",
        "json",
        "web.jsx",
        "jsx",
        "node"
      ]
    },
    "babel": {
      "presets": [
        "react-app",
        "stage-0"
      ]
    },
    "eslintConfig": {
      "extends": "react-app"
    }
  }</code></pre>
  </div>
  </div>
  </p>