{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/1655","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/1655/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/1655/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/1655/events","html_url":"https://github.com/facebook/jest/issues/1655","id":175977019,"number":1655,"title":"Remove react-native special casing in jest-config normalize.js","user":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/jest/labels/hi-pri","name":"hi-pri","color":"d93f0b"}],"state":"closed","locked":false,"assignee":{"login":"cpojer","id":13352,"avatar_url":"https://avatars.githubusercontent.com/u/13352?v=3","gravatar_id":"","url":"https://api.github.com/users/cpojer","html_url":"https://github.com/cpojer","followers_url":"https://api.github.com/users/cpojer/followers","following_url":"https://api.github.com/users/cpojer/following{/other_user}","gists_url":"https://api.github.com/users/cpojer/gists{/gist_id}","starred_url":"https://api.github.com/users/cpojer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpojer/subscriptions","organizations_url":"https://api.github.com/users/cpojer/orgs","repos_url":"https://api.github.com/users/cpojer/repos","events_url":"https://api.github.com/users/cpojer/events{/privacy}","received_events_url":"https://api.github.com/users/cpojer/received_events","type":"User","site_admin":false},"assignees":[{"login":"cpojer","id":13352,"avatar_url":"https://avatars.githubusercontent.com/u/13352?v=3","gravatar_id":"","url":"https://api.github.com/users/cpojer","html_url":"https://github.com/cpojer","followers_url":"https://api.github.com/users/cpojer/followers","following_url":"https://api.github.com/users/cpojer/following{/other_user}","gists_url":"https://api.github.com/users/cpojer/gists{/gist_id}","starred_url":"https://api.github.com/users/cpojer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpojer/subscriptions","organizations_url":"https://api.github.com/users/cpojer/orgs","repos_url":"https://api.github.com/users/cpojer/repos","events_url":"https://api.github.com/users/cpojer/events{/privacy}","received_events_url":"https://api.github.com/users/cpojer/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/facebook/jest/milestones/1","html_url":"https://github.com/facebook/jest/milestones/15.2.0","labels_url":"https://api.github.com/repos/facebook/jest/milestones/1/labels","id":2005227,"number":1,"title":"15.2.0","description":"","creator":{"login":"cpojer","id":13352,"avatar_url":"https://avatars.githubusercontent.com/u/13352?v=3","gravatar_id":"","url":"https://api.github.com/users/cpojer","html_url":"https://github.com/cpojer","followers_url":"https://api.github.com/users/cpojer/followers","following_url":"https://api.github.com/users/cpojer/following{/other_user}","gists_url":"https://api.github.com/users/cpojer/gists{/gist_id}","starred_url":"https://api.github.com/users/cpojer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpojer/subscriptions","organizations_url":"https://api.github.com/users/cpojer/orgs","repos_url":"https://api.github.com/users/cpojer/repos","events_url":"https://api.github.com/users/cpojer/events{/privacy}","received_events_url":"https://api.github.com/users/cpojer/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":2,"state":"open","created_at":"2016-09-14T21:29:13Z","updated_at":"2016-09-16T03:40:36Z","due_on":"2016-09-20T00:00:00Z","closed_at":null},"comments":10,"created_at":"2016-09-09T10:23:39Z","updated_at":"2016-09-16T03:40:36Z","closed_at":"2016-09-16T03:40:36Z","body":"**Do you want to request a *feature* or report a *bug*?**\r\n\r\nI think I found a BUG.\r\n\r\n**What is the current behavior?**\r\n\r\nWhen using a node module called \"jsx-test-helpers\", jest is trying to interpret the babel configuration that is shipped in the package.json. I were using this with AVA (which also transform using babel) but were not having this issue.\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can `npm install` and `npm test`.**\r\n\r\nTry to run this\r\n\r\n```js\r\nimport React from \"react\"\r\nimport { renderJSX } from \"jsx-test-helpers\"\r\n\r\nit(\"renders correctly\", () => {\r\n  renderJSX(\r\n    <a page=\"http://www.facebook.com\">{ \"Facebook\" }</a>\r\n  )\r\n})\r\n```\r\n\r\n**What is the expected behavior?**\r\n\r\nThis code should not break with the following error\r\n\r\n```\r\nCouldn't find preset \"babel-preset-stage-1\" relative to directory \"/Users/moox/Sync/Development/_EDITED_/node_modules/jsx-test-helpers\"\r\n```\r\n\r\n**Run Jest again with `--debug` and provide the full configuration it prints. Please mention your node and npm version and operating system.**\r\n\r\n```\r\nNode v6.4.0\r\nnpm 3.10.3\r\nProductName:    Mac OS X\r\nProductVersion: 10.12\r\nBuildVersion:   16A313a\r\n``` \r\n\r\n```\r\n$ NODE_ENV=development jest --debug --no-cache src/modules/NavigationMenu/__tests__/index.js \r\njest version = 15.1.1\r\ntest framework = jasmine2\r\nconfig = {\r\n  \"rootDir\": \"/Users/moox/Sync/Development/_EDIT_\",\r\n  \"name\": \"-Users-moox-Sync-Development-_clients-mphasis-wyde-WynsureGroupAdmin\",\r\n  \"setupFiles\": [\r\n    \"/Users/moox/Sync/Development/_EDIT_/node_modules/babel-polyfill/lib/index.js\"\r\n  ],\r\n  \"testRunner\": \"/Users/moox/Sync/Development/_EDIT_/node_modules/jest-jasmine2/build/index.js\",\r\n  \"scriptPreprocessor\": \"/Users/moox/Sync/Development/_EDIT_/node_modules/babel-jest/build/index.js\",\r\n  \"usesBabelJest\": true,\r\n  \"preprocessorIgnorePatterns\": [],\r\n  \"automock\": false,\r\n  \"bail\": false,\r\n  \"browser\": false,\r\n  \"cacheDirectory\": \"/var/folders/fp/xz51yg_945dc86f52ncz3jh00000gn/T/jest\",\r\n  \"colors\": false,\r\n  \"coveragePathIgnorePatterns\": [\r\n    \"/node_modules/\"\r\n  ],\r\n  \"coverageReporters\": [\r\n    \"json\",\r\n    \"text\",\r\n    \"lcov\",\r\n    \"clover\"\r\n  ],\r\n  \"globals\": {},\r\n  \"haste\": {\r\n    \"providesModuleNodeModules\": []\r\n  },\r\n  \"mocksPattern\": \"__mocks__\",\r\n  \"moduleDirectories\": [\r\n    \"node_modules\"\r\n  ],\r\n  \"moduleFileExtensions\": [\r\n    \"js\",\r\n    \"json\",\r\n    \"node\"\r\n  ],\r\n  \"moduleNameMapper\": {},\r\n  \"modulePathIgnorePatterns\": [],\r\n  \"noStackTrace\": false,\r\n  \"notify\": false,\r\n  \"preset\": null,\r\n  \"resetModules\": false,\r\n  \"testEnvironment\": \"jest-environment-jsdom\",\r\n  \"testPathDirs\": [\r\n    \"/Users/moox/Sync/Development/_EDIT_\"\r\n  ],\r\n  \"testPathIgnorePatterns\": [\r\n    \"/node_modules/\"\r\n  ],\r\n  \"testRegex\": \"(/__tests__/.*|\\\\.(test|spec))\\\\.js$\",\r\n  \"testURL\": \"about:blank\",\r\n  \"timers\": \"real\",\r\n  \"useStderr\": false,\r\n  \"verbose\": null,\r\n  \"watch\": false,\r\n  \"cache\": false,\r\n  \"watchman\": true,\r\n  \"testcheckOptions\": {\r\n    \"times\": 100,\r\n    \"maxSize\": 200\r\n  }\r\n}\r\n FAIL  src/modules/NavigationMenu/__tests__/index.js\r\n  ● Test suite failed to run\r\n\r\n    Couldn't find preset \"babel-preset-stage-1\" relative to directory \"/Users/moox/Sync/Development/_EDIT_/node_modules/jsx-test-helpers\"\r\n      \r\n      at node_modules/babel-core/lib/transformation/file/options/option-manager.js:281:17\r\n      at Array.map (native)\r\n      at OptionManager.resolvePresets (node_modules/babel-core/lib/transformation/file/options/option-manager.js:265:20)\r\n      at OptionManager.mergePresets (node_modules/babel-core/lib/transformation/file/options/option-manager.js:254:10)\r\n      at OptionManager.mergeOptions (node_modules/babel-core/lib/transformation/file/options/option-manager.js:239:14)\r\n      at OptionManager.init (node_modules/babel-core/lib/transformation/file/options/option-manager.js:338:12)\r\n      at File.initOptions (node_modules/babel-core/lib/transformation/file/index.js:216:65)\r\n      at new File (node_modules/babel-core/lib/transformation/file/index.js:137:24)\r\n      at Pipeline.transform (node_modules/babel-core/lib/transformation/pipeline.js:46:16)\r\n\r\nTest Summary\r\n › Ran all tests matching \"src/modules/NavigationMenu/__tests__/index.js\".\r\n › 1 test suite failed, 0 tests passed (0 total in 1 test suite, run time 6.695s)\r\n```"}}
{"actor":{"display_login":"cpojer"}}