{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/4710","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/4710/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/4710/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/4710/events","html_url":"https://github.com/facebook/jest/issues/4710","id":265901983,"number":4710,"title":"TypeError: Cannot read property 'Object.<anonymous>' of null ","user":{"login":"jtulk","id":2204260,"avatar_url":"https://avatars1.githubusercontent.com/u/2204260?v=4","gravatar_id":"","url":"https://api.github.com/users/jtulk","html_url":"https://github.com/jtulk","followers_url":"https://api.github.com/users/jtulk/followers","following_url":"https://api.github.com/users/jtulk/following{/other_user}","gists_url":"https://api.github.com/users/jtulk/gists{/gist_id}","starred_url":"https://api.github.com/users/jtulk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtulk/subscriptions","organizations_url":"https://api.github.com/users/jtulk/orgs","repos_url":"https://api.github.com/users/jtulk/repos","events_url":"https://api.github.com/users/jtulk/events{/privacy}","received_events_url":"https://api.github.com/users/jtulk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2017-10-16T20:17:55Z","updated_at":"2018-03-28T10:28:12Z","closed_at":"2017-12-15T13:55:34Z","author_association":"NONE","body":"Trying to run Jest tests after upgrading.\r\n\r\n```js\r\n/Users/justintulk/Sites/myProject/node_modules/jest-runtime/build/index.js:518\r\n    (_script_transformer || _load_script_transformer()).default.EVAL_RESULT_VARIABLE];\r\n\r\nTypeError: Cannot read property 'Object.<anonymous>' of null\r\n```\r\n\r\n**Do you want to request a *feature* or report a *bug*?**\r\n\r\nReport a bug.\r\n\r\n**What is the current behavior?**\r\n\r\n`yarn test` fails at running `scripts/test.js` (included). Throws primarily when trying to run _all_ the tests, running `yarn watch` and only testing changed files has not reproduced the errors. \r\n\r\n```js\r\n/Users/justintulk/Sites/myProject/node_modules/jest-runtime/build/index.js:518\r\n    (_script_transformer || _load_script_transformer()).default.EVAL_RESULT_VARIABLE];\r\n                                                               ^\r\nTypeError: Cannot read property 'Object.<anonymous>' of null\r\n    at Runtime._execModule (/Users/justintulk/Sites/myProject/node_modules/jest-runtime/build/index.js:518:64)\r\n    at Runtime.requireModule (/Users/justintulk/Sites/myProject/node_modules/jest-runtime/build/index.js:332:14)\r\n    at Runtime.requireModuleOrMock (/Users/justintulk/Sites/myProject/node_modules/jest-runtime/build/index.js:408:19)\r\n    at Object.getVendors (/Users/justintulk/Sites/myProject/node_modules/newrelic/lib/utilization/index.js:6:10)\r\n    at fetchSystemInfo (/Users/justintulk/Sites/myProject/node_modules/newrelic/lib/system-info.js:93:15)\r\n    at facts (/Users/justintulk/Sites/myProject/node_modules/newrelic/lib/collector/facts.js:9:3)\r\n    at _getFacts (/Users/justintulk/Sites/myProject/node_modules/newrelic/lib/collector/api.js:162:5)\r\n    at redirectCb (/Users/justintulk/Sites/myProject/node_modules/newrelic/lib/collector/api.js:158:5)\r\n    at cb_nextTick (/Users/justintulk/Sites/myProject/node_modules/newrelic/lib/collector/parse-response.js:113:7)\r\n    at _combinedTickCallback (internal/process/next_tick.js:131:7)\r\nerror Command failed with exit code 1.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\r\n```\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and either a repl.it demo through https://repl.it/languages/jest or a minimal repository on GitHub that we can `yarn install` and `yarn test`.**\r\n\r\n**What is the expected behavior?**\r\n\r\nShould run tests without crashing.\r\n\r\n**Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.**\r\n\r\n**EDIT** ~Works fine~ fails w/ Jest 20.0.4\r\nFails on 21.2.1\r\n\r\nscripts/test.js\r\n```js\r\n// Do this as the first thing so that any code reading it knows the right env.\r\nprocess.env.BABEL_ENV = \"test\";\r\nprocess.env.NODE_ENV = \"test\";\r\nprocess.env.PUBLIC_URL = \"\";\r\n\r\n// Makes the script crash on unhandled rejections instead of silently\r\n// ignoring them. In the future, promise rejections that are not handled will\r\n// terminate the Node.js process with a non-zero exit code.\r\nprocess.on(\"unhandledRejection\", err => {\r\n  throw err;\r\n});\r\n\r\nconst ijest = require(\"jest\");\r\n\r\nconst argv = process.argv.slice(2);\r\n\r\n// Watch unless on CI or in coverage mode\r\n// if (!process.env.CI && argv.indexOf(\"--coverage\") < 0) {\r\n//   argv.push(\"--watch\");\r\n// }\r\n\r\nijest.run(argv);\r\n```\r\n\r\nPackage.json\r\n```js\r\n  \"test\": \"node scripts/test.js\",\r\n  \"jest\": {\r\n    \"collectCoverageFrom\": [\"src/**/*.{js,jsx}\"],\r\n    \"testMatch\": [\r\n      \"<rootDir>/controllers/**/__tests__/**/*.js?(x)\",\r\n      \"<rootDir>/controllers/**/?(*.)(spec|test).js?(x)\"\r\n    ],\r\n    \"testEnvironment\": \"node\",\r\n    \"testURL\": \"http://localhost\",\r\n    \"testResultsProcessor\": \"./node_modules/jest-junit\"\r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/376838779","html_url":"https://github.com/facebook/jest/issues/4710#issuecomment-376838779","issue_url":"https://api.github.com/repos/facebook/jest/issues/4710","id":376838779,"user":{"login":"yuhr","id":18474125,"avatar_url":"https://avatars0.githubusercontent.com/u/18474125?v=4","gravatar_id":"","url":"https://api.github.com/users/yuhr","html_url":"https://github.com/yuhr","followers_url":"https://api.github.com/users/yuhr/followers","following_url":"https://api.github.com/users/yuhr/following{/other_user}","gists_url":"https://api.github.com/users/yuhr/gists{/gist_id}","starred_url":"https://api.github.com/users/yuhr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuhr/subscriptions","organizations_url":"https://api.github.com/users/yuhr/orgs","repos_url":"https://api.github.com/users/yuhr/repos","events_url":"https://api.github.com/users/yuhr/events{/privacy}","received_events_url":"https://api.github.com/users/yuhr/received_events","type":"User","site_admin":false},"created_at":"2018-03-28T10:28:12Z","updated_at":"2018-03-28T10:28:12Z","author_association":"NONE","body":"Using `js-ipfs` seems to cause this error but I can't find out why this happens actually"}}
{"actor":{"display_login":"yuhr"}}