{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/4839","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/4839/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/4839/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/4839/events","html_url":"https://github.com/facebook/jest/issues/4839","id":271120349,"number":4839,"title":"jest-haste-map fails if any `.git/*` filepaths include the substring `package.json`","user":{"login":"mshwery","id":710752,"avatar_url":"https://avatars0.githubusercontent.com/u/710752?v=4","gravatar_id":"","url":"https://api.github.com/users/mshwery","html_url":"https://github.com/mshwery","followers_url":"https://api.github.com/users/mshwery/followers","following_url":"https://api.github.com/users/mshwery/following{/other_user}","gists_url":"https://api.github.com/users/mshwery/gists{/gist_id}","starred_url":"https://api.github.com/users/mshwery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshwery/subscriptions","organizations_url":"https://api.github.com/users/mshwery/orgs","repos_url":"https://api.github.com/users/mshwery/repos","events_url":"https://api.github.com/users/mshwery/events{/privacy}","received_events_url":"https://api.github.com/users/mshwery/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-03T21:12:56Z","updated_at":"2017-11-04T16:56:47Z","closed_at":null,"author_association":"NONE","body":"**Do you want to request a *feature* or report a *bug*?**\r\nBug\r\n\r\n**What is the current behavior?**\r\nJest will fail with a `JSON.parse` error. \r\n\r\n```\r\nSyntaxError: Unexpected number in JSON at position 1\r\n    at JSON.parse (<anonymous>)\r\n    at module.exports (/Users/mshwery/repos/test/node_modules/jest-haste-map/build/worker.js:66:29)\r\n    at handle (/Users/mshwery/repos/test/node_modules/worker-farm/lib/child/index.js:44:8)\r\n    at process.<anonymous> (/Users/mshwery/repos/test/node_modules/worker-farm/lib/child/index.js:51:3)\r\n    at emitTwo (events.js:106:13)\r\n    at process.emit (events.js:192:7)\r\n    at process.nextTick (internal/child_process.js:757:12)\r\n    at _combinedTickCallback (internal/process/next_tick.js:67:7)\r\n    at process._tickCallback (internal/process/next_tick.js:98:9)\r\n```\r\n\r\n**What is the expected behavior?**\r\nJest will not fail due to `.git/*` ref/log names.\r\n\r\n**Please provide your exact Jest configuration and mention your Jest, node, yarn/npm version and operating system.**\r\nJest v21.2.1 (standard configuration, no customization)\r\nNode v7.6.0\r\nnpm v4.1.2\r\nMacOS Sierra (v10.12.6)"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/341912383","html_url":"https://github.com/facebook/jest/issues/4839#issuecomment-341912383","issue_url":"https://api.github.com/repos/facebook/jest/issues/4839","id":341912383,"user":{"login":"mshwery","id":710752,"avatar_url":"https://avatars0.githubusercontent.com/u/710752?v=4","gravatar_id":"","url":"https://api.github.com/users/mshwery","html_url":"https://github.com/mshwery","followers_url":"https://api.github.com/users/mshwery/followers","following_url":"https://api.github.com/users/mshwery/following{/other_user}","gists_url":"https://api.github.com/users/mshwery/gists{/gist_id}","starred_url":"https://api.github.com/users/mshwery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshwery/subscriptions","organizations_url":"https://api.github.com/users/mshwery/orgs","repos_url":"https://api.github.com/users/mshwery/repos","events_url":"https://api.github.com/users/mshwery/events{/privacy}","received_events_url":"https://api.github.com/users/mshwery/received_events","type":"User","site_admin":false},"created_at":"2017-11-04T16:56:47Z","updated_at":"2017-11-04T16:56:47Z","author_association":"NONE","body":"@cpojer thanks for the quick response! I think setting jest to ignore `.git` by default makes sense.\r\n\r\nI can imagine this also extends to other dotdirectories, though it's probably uncommon enough."}}
{"actor":{"display_login":"mshwery"}}