{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/jest/pulls/comments/104171285","pull_request_review_id":24993051,"id":104171285,"diff_hunk":"@@ -0,0 +1,10 @@\n+{\n+  \"name\": \"jest-docblock\",\n+  \"version\": \"19.0.0\",","path":"packages/jest-docblock/package.json","position":3,"original_position":3,"commit_id":"a19e8a66d04a55a39b10b4c2944876f537fb6e61","original_commit_id":"a19e8a66d04a55a39b10b4c2944876f537fb6e61","user":{"login":"cpojer","id":13352,"avatar_url":"https://avatars3.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},"body":"Can you set the version here (and where it is used) to 19.0.2? :)","created_at":"2017-03-03T15:11:11Z","updated_at":"2017-03-03T15:11:11Z","html_url":"https://github.com/facebook/jest/pull/2859#discussion_r104171285","pull_request_url":"https://api.github.com/repos/facebook/jest/pulls/2859","_links":{"self":{"href":"https://api.github.com/repos/facebook/jest/pulls/comments/104171285"},"html":{"href":"https://github.com/facebook/jest/pull/2859#discussion_r104171285"},"pull_request":{"href":"https://api.github.com/repos/facebook/jest/pulls/2859"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/2859","id":105726946,"html_url":"https://github.com/facebook/jest/pull/2859","diff_url":"https://github.com/facebook/jest/pull/2859.diff","patch_url":"https://github.com/facebook/jest/pull/2859.patch","issue_url":"https://api.github.com/repos/facebook/jest/issues/2859","number":2859,"state":"open","locked":false,"title":"Allow setting a test environment per file","user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars2.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"body":"<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. -->\r\n\r\n**Summary**\r\n\r\n<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->\r\n\r\nFixes #2587. This is WIP, opening a PR now to get feedback on direction.\r\n\r\n**Test plan**\r\n\r\n<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI. -->\r\n\r\nSource:\r\n```js\r\nexport default (num) => num * 2;\r\n```\r\n\r\nTest:\r\n```js\r\n/**\r\n * @testEnvironment jsdom\r\n */\r\n\r\nimport add from '../index.js';\r\n\r\ntest('add should work', () => {\r\n  expect(add(2)).toEqual(4);\r\n  document.createElement('a');\r\n});\r\n```\r\n\r\nCommand run without these changes:\r\n```sh-session\r\n$ ../jest/packages/jest/bin/jest.js --env node\r\n FAIL  __tests__/index.js\r\n  ● add should work\r\n\r\n    ReferenceError: document is not defined\r\n\r\n      at Object.<anonymous> (__tests__/index.js:9:3)\r\n\r\n  ✕ add should work (4ms)\r\n\r\nTest Suites: 1 failed, 1 total\r\nTests:       1 failed, 1 total\r\nSnapshots:   0 total\r\nTime:        0.569s, estimated 3s\r\nRan all test suites.\r\n```\r\n\r\nCommand run with these changes:\r\n```sh-session\r\n$ ../jest/packages/jest/bin/jest.js --env node\r\n PASS  __tests__/index.js\r\n  ✓ add should work (4ms)\r\n\r\nTest Suites: 1 passed, 1 total\r\nTests:       1 passed, 1 total\r\nSnapshots:   0 total\r\nTime:        1.032s\r\nRan all test suites.\r\n```\r\n","created_at":"2017-02-10T23:48:40Z","updated_at":"2017-03-03T15:11:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbd0a33a901723c290922c8805f35ba54c5bdf76","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/jest/pulls/2859/commits","review_comments_url":"https://api.github.com/repos/facebook/jest/pulls/2859/comments","review_comment_url":"https://api.github.com/repos/facebook/jest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/jest/issues/2859/comments","statuses_url":"https://api.github.com/repos/facebook/jest/statuses/a19e8a66d04a55a39b10b4c2944876f537fb6e61","head":{"label":"SimenB:env-per-test","ref":"env-per-test","sha":"a19e8a66d04a55a39b10b4c2944876f537fb6e61","user":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars2.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"repo":{"id":75474674,"name":"jest","full_name":"SimenB/jest","owner":{"login":"SimenB","id":1404810,"avatar_url":"https://avatars2.githubusercontent.com/u/1404810?v=3","gravatar_id":"","url":"https://api.github.com/users/SimenB","html_url":"https://github.com/SimenB","followers_url":"https://api.github.com/users/SimenB/followers","following_url":"https://api.github.com/users/SimenB/following{/other_user}","gists_url":"https://api.github.com/users/SimenB/gists{/gist_id}","starred_url":"https://api.github.com/users/SimenB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimenB/subscriptions","organizations_url":"https://api.github.com/users/SimenB/orgs","repos_url":"https://api.github.com/users/SimenB/repos","events_url":"https://api.github.com/users/SimenB/events{/privacy}","received_events_url":"https://api.github.com/users/SimenB/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SimenB/jest","description":"🃏 Painless JavaScript Testing.","fork":true,"url":"https://api.github.com/repos/SimenB/jest","forks_url":"https://api.github.com/repos/SimenB/jest/forks","keys_url":"https://api.github.com/repos/SimenB/jest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SimenB/jest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SimenB/jest/teams","hooks_url":"https://api.github.com/repos/SimenB/jest/hooks","issue_events_url":"https://api.github.com/repos/SimenB/jest/issues/events{/number}","events_url":"https://api.github.com/repos/SimenB/jest/events","assignees_url":"https://api.github.com/repos/SimenB/jest/assignees{/user}","branches_url":"https://api.github.com/repos/SimenB/jest/branches{/branch}","tags_url":"https://api.github.com/repos/SimenB/jest/tags","blobs_url":"https://api.github.com/repos/SimenB/jest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SimenB/jest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SimenB/jest/git/refs{/sha}","trees_url":"https://api.github.com/repos/SimenB/jest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SimenB/jest/statuses/{sha}","languages_url":"https://api.github.com/repos/SimenB/jest/languages","stargazers_url":"https://api.github.com/repos/SimenB/jest/stargazers","contributors_url":"https://api.github.com/repos/SimenB/jest/contributors","subscribers_url":"https://api.github.com/repos/SimenB/jest/subscribers","subscription_url":"https://api.github.com/repos/SimenB/jest/subscription","commits_url":"https://api.github.com/repos/SimenB/jest/commits{/sha}","git_commits_url":"https://api.github.com/repos/SimenB/jest/git/commits{/sha}","comments_url":"https://api.github.com/repos/SimenB/jest/comments{/number}","issue_comment_url":"https://api.github.com/repos/SimenB/jest/issues/comments{/number}","contents_url":"https://api.github.com/repos/SimenB/jest/contents/{+path}","compare_url":"https://api.github.com/repos/SimenB/jest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SimenB/jest/merges","archive_url":"https://api.github.com/repos/SimenB/jest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SimenB/jest/downloads","issues_url":"https://api.github.com/repos/SimenB/jest/issues{/number}","pulls_url":"https://api.github.com/repos/SimenB/jest/pulls{/number}","milestones_url":"https://api.github.com/repos/SimenB/jest/milestones{/number}","notifications_url":"https://api.github.com/repos/SimenB/jest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SimenB/jest/labels{/name}","releases_url":"https://api.github.com/repos/SimenB/jest/releases{/id}","deployments_url":"https://api.github.com/repos/SimenB/jest/deployments","created_at":"2016-12-03T13:18:04Z","updated_at":"2016-12-03T13:18:07Z","pushed_at":"2017-03-02T17:13:07Z","git_url":"git://github.com/SimenB/jest.git","ssh_url":"git@github.com:SimenB/jest.git","clone_url":"https://github.com/SimenB/jest.git","svn_url":"https://github.com/SimenB/jest","homepage":"http://facebook.github.io/jest/","size":12625,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"602a2110869811ed1e54f8e64f1c041e81273b65","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars0.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":15062869,"name":"jest","full_name":"facebook/jest","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars0.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/jest","description":"🃏 Painless JavaScript Testing.","fork":false,"url":"https://api.github.com/repos/facebook/jest","forks_url":"https://api.github.com/repos/facebook/jest/forks","keys_url":"https://api.github.com/repos/facebook/jest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/jest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/jest/teams","hooks_url":"https://api.github.com/repos/facebook/jest/hooks","issue_events_url":"https://api.github.com/repos/facebook/jest/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/jest/events","assignees_url":"https://api.github.com/repos/facebook/jest/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/jest/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/jest/tags","blobs_url":"https://api.github.com/repos/facebook/jest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/jest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/jest/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/jest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/jest/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/jest/languages","stargazers_url":"https://api.github.com/repos/facebook/jest/stargazers","contributors_url":"https://api.github.com/repos/facebook/jest/contributors","subscribers_url":"https://api.github.com/repos/facebook/jest/subscribers","subscription_url":"https://api.github.com/repos/facebook/jest/subscription","commits_url":"https://api.github.com/repos/facebook/jest/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/jest/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/jest/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/jest/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/jest/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/jest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/jest/merges","archive_url":"https://api.github.com/repos/facebook/jest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/jest/downloads","issues_url":"https://api.github.com/repos/facebook/jest/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/jest/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/jest/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/jest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/jest/labels{/name}","releases_url":"https://api.github.com/repos/facebook/jest/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/jest/deployments","created_at":"2013-12-10T00:18:04Z","updated_at":"2017-03-03T14:44:07Z","pushed_at":"2017-03-03T15:09:07Z","git_url":"git://github.com/facebook/jest.git","ssh_url":"git@github.com:facebook/jest.git","clone_url":"https://github.com/facebook/jest.git","svn_url":"https://github.com/facebook/jest","homepage":"http://facebook.github.io/jest/","size":12866,"stargazers_count":8374,"watchers_count":8374,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1044,"mirror_url":null,"open_issues_count":108,"forks":1044,"open_issues":108,"watchers":8374,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/jest/pulls/2859"},"html":{"href":"https://github.com/facebook/jest/pull/2859"},"issue":{"href":"https://api.github.com/repos/facebook/jest/issues/2859"},"comments":{"href":"https://api.github.com/repos/facebook/jest/issues/2859/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/jest/pulls/2859/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/jest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/jest/pulls/2859/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/jest/statuses/a19e8a66d04a55a39b10b4c2944876f537fb6e61"}}}}
{"actor":{"display_login":"cpojer"}}