{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/992","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/992/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/992/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/992/events","html_url":"https://github.com/facebook/jest/pull/992","id":154370067,"number":992,"title":"Prevent workerCount == 0 on single CPU machines","user":{"login":"crgwbr","id":173216,"avatar_url":"https://avatars.githubusercontent.com/u/173216?v=3","gravatar_id":"","url":"https://api.github.com/users/crgwbr","html_url":"https://github.com/crgwbr","followers_url":"https://api.github.com/users/crgwbr/followers","following_url":"https://api.github.com/users/crgwbr/following{/other_user}","gists_url":"https://api.github.com/users/crgwbr/gists{/gist_id}","starred_url":"https://api.github.com/users/crgwbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crgwbr/subscriptions","organizations_url":"https://api.github.com/users/crgwbr/orgs","repos_url":"https://api.github.com/users/crgwbr/repos","events_url":"https://api.github.com/users/crgwbr/events{/privacy}","received_events_url":"https://api.github.com/users/crgwbr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-12T00:09:00Z","updated_at":"2016-05-12T00:17:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/992","html_url":"https://github.com/facebook/jest/pull/992","diff_url":"https://github.com/facebook/jest/pull/992.diff","patch_url":"https://github.com/facebook/jest/pull/992.patch"},"body":"When the workerCount is not explicitly set by the user, it defaults to the\r\nnumber of CPUs on the machine, less 1. The intention of\r\npackages/jest-cli/src/TestRunner.js#L46 is to prevent the worker count from\r\nbeing 0 if it is running on a single-core CPU. However,\r\npackages/jest-cli/src/TestRunner.js#L61 was referencing the passed-in worker\r\ncount rather than the sanitized value. This causes single-core machines to be\r\ncompletely unable to run tests unless they specify the worker count manually."},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/218627072","html_url":"https://github.com/facebook/jest/pull/992#issuecomment-218627072","issue_url":"https://api.github.com/repos/facebook/jest/issues/992","id":218627072,"user":{"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},"created_at":"2016-05-12T00:17:03Z","updated_at":"2016-05-12T00:17:03Z","body":"Can you check #991 and #984 and tell me whether that fixes your issue? The issue you run into should be resolved in the next version of Jest."}}