{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/2007","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/2007/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/2007/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/2007/events","html_url":"https://github.com/facebook/jest/issues/2007","id":185545939,"number":2007,"title":"Tests fail only with `--coverage`","user":{"login":"mrmckeb","id":5043083,"avatar_url":"https://avatars.githubusercontent.com/u/5043083?v=3","gravatar_id":"","url":"https://api.github.com/users/mrmckeb","html_url":"https://github.com/mrmckeb","followers_url":"https://api.github.com/users/mrmckeb/followers","following_url":"https://api.github.com/users/mrmckeb/following{/other_user}","gists_url":"https://api.github.com/users/mrmckeb/gists{/gist_id}","starred_url":"https://api.github.com/users/mrmckeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrmckeb/subscriptions","organizations_url":"https://api.github.com/users/mrmckeb/orgs","repos_url":"https://api.github.com/users/mrmckeb/repos","events_url":"https://api.github.com/users/mrmckeb/events{/privacy}","received_events_url":"https://api.github.com/users/mrmckeb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-27T00:37:40Z","updated_at":"2016-11-04T11:47:10Z","closed_at":"2016-11-04T09:10:29Z","body":"This may be a bug with our configuration, but so far I can't see anything that would be causing it.\n\nWe're using [kyt](https://github.com/NYTimes/kyt), and have enjoyed using Jest with Enzyme for testing. `jest` and `jest --watch` work perfectly. However, _some_ tests fail (I can't see a pattern) when running `jest --coverage` when they work fine otherwise.\n\nIt seems that the failing tests all suffer from the same issue, that the component isn't actually being created / is empty. Example errors:\n- `Method “html” is only meant to be run on a single node. 0 found instead.`\n- `Method “props” is only meant to be run on a single node. 0 found instead.`\n- `expect(received).toBe(expected) -- Expected value to be (using ===): 3 -- Received: 0` (looking the number of components expected under certain conditions).\n\nMy expectation is that `test --coverage` doesn't do anything differently than `test` and `test --watch`... but I could be wrong, and as mentioned, I realise this could be something we've done wrong.\n\nNode v6.9.0 / npm v3.10.8\nJest v16.0.1 (running with `jsdom` as the test environment)\nEnzyme v2.4.1\n\nAn example of a full failure:\n\n```\n FAIL  components/views/Account/MyComponent/index.test.js\n  ● Should render two buttons\n\n    expect(received).toBe(expected)\n\n    Expected value to be (using ===):\n      2\n    Received:\n      0\n\n      at Object.<anonymous> (components/views/Account/MyComponent/index.test.js:12:40)\n      at handle (../node_modules/worker-farm/lib/child/index.js:41:8)\n      at process.<anonymous> (../node_modules/worker-farm/lib/child/index.js:47:3)\n      at emitTwo (../events.js:106:13)\n      at process.emit (../events.js:191:7)\n      at process.nextTick (../internal/child_process.js:744:12)\n      at _combinedTickCallback (../internal/process/next_tick.js:67:7)\n      at process._tickCallback (../internal/process/next_tick.js:98:9)\n```\n\nAny help or pointers would be greatly appreciated.\n"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/258411558","html_url":"https://github.com/facebook/jest/issues/2007#issuecomment-258411558","issue_url":"https://api.github.com/repos/facebook/jest/issues/2007","id":258411558,"user":{"login":"alphashuro","id":8580352,"avatar_url":"https://avatars.githubusercontent.com/u/8580352?v=3","gravatar_id":"","url":"https://api.github.com/users/alphashuro","html_url":"https://github.com/alphashuro","followers_url":"https://api.github.com/users/alphashuro/followers","following_url":"https://api.github.com/users/alphashuro/following{/other_user}","gists_url":"https://api.github.com/users/alphashuro/gists{/gist_id}","starred_url":"https://api.github.com/users/alphashuro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphashuro/subscriptions","organizations_url":"https://api.github.com/users/alphashuro/orgs","repos_url":"https://api.github.com/users/alphashuro/repos","events_url":"https://api.github.com/users/alphashuro/events{/privacy}","received_events_url":"https://api.github.com/users/alphashuro/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T11:47:10Z","updated_at":"2016-11-04T11:47:10Z","body":"what is the news on this? I can't update jest because i'm at the mercy of create-react-app\r\n"}}
{"actor":{"display_login":"alphashuro"}}