{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/jest/pulls/comments/203185360","pull_request_review_id":138026995,"id":203185360,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzE4NTM2MA==","diff_hunk":"@@ -78,24 +84,31 @@ export const serialize = (\n     return printComment(node.data, config);\n   }\n \n-  const type = node.tagName.toLowerCase();\n+  let type;\n+\n+  if (node.nodeType === FRAGMENT_NODE) {\n+    type = `Fragment`;","path":"packages/pretty-format/src/plugins/dom_element.js","position":null,"original_position":42,"commit_id":"592e40269186d73a52930dd370a1c66186d77f88","original_commit_id":"fa169577c176ed88380e9535e3c4824363eea3df","user":{"login":"SimenB","id":1404810,"node_id":"MDQ6VXNlcjE0MDQ4MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1404810?v=4","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":"done","created_at":"2018-07-17T21:31:08Z","updated_at":"2018-07-17T21:31:08Z","html_url":"https://github.com/facebook/jest/pull/6705#discussion_r203185360","pull_request_url":"https://api.github.com/repos/facebook/jest/pulls/6705","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/facebook/jest/pulls/comments/203185360"},"html":{"href":"https://github.com/facebook/jest/pull/6705#discussion_r203185360"},"pull_request":{"href":"https://api.github.com/repos/facebook/jest/pulls/6705"}},"in_reply_to_id":203074379},"pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/6705","id":201943817,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxOTQzODE3","html_url":"https://github.com/facebook/jest/pull/6705","diff_url":"https://github.com/facebook/jest/pull/6705.diff","patch_url":"https://github.com/facebook/jest/pull/6705.patch","issue_url":"https://api.github.com/repos/facebook/jest/issues/6705","number":6705,"state":"open","locked":false,"title":"support serializing `DocumentFragment`","user":{"login":"SimenB","id":1404810,"node_id":"MDQ6VXNlcjE0MDQ4MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1404810?v=4","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<!-- Please remember to update CHANGELOG.md in the root of the project if you have not done so. -->\r\n\r\n## Summary\r\nUseful when you have some markup you want to snapshot.\r\n\r\n```js\r\n'use strict';\r\n\r\nconst { JSDOM } = require('jsdom');\r\n\r\nconst pretty = require('pretty-format');\r\nconst { plugins } = pretty;\r\n\r\nconst frag = JSDOM.fragment('<p>hello</p><div>sup</div>');\r\nconsole.log(pretty(frag, { highlight: true, plugins: Object.values(plugins) }));\r\n```\r\n\r\nPrints:\r\n\r\n![image](https://user-images.githubusercontent.com/1404810/42820658-f37b740e-89d6-11e8-91b2-be1ed573ee21.png)\r\n\r\nOpen to changing `<Fragment>` to something else. Just `<>` perhaps?\r\n\r\n<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->\r\n\r\n## Test plan\r\nTest added\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","created_at":"2018-07-17T13:35:59Z","updated_at":"2018-07-17T21:31:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44535f84cb68bb9e8b7c59b5134cc50412c572b6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rickhanlonii","id":2440089,"node_id":"MDQ6VXNlcjI0NDAwODk=","avatar_url":"https://avatars0.githubusercontent.com/u/2440089?v=4","gravatar_id":"","url":"https://api.github.com/users/rickhanlonii","html_url":"https://github.com/rickhanlonii","followers_url":"https://api.github.com/users/rickhanlonii/followers","following_url":"https://api.github.com/users/rickhanlonii/following{/other_user}","gists_url":"https://api.github.com/users/rickhanlonii/gists{/gist_id}","starred_url":"https://api.github.com/users/rickhanlonii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickhanlonii/subscriptions","organizations_url":"https://api.github.com/users/rickhanlonii/orgs","repos_url":"https://api.github.com/users/rickhanlonii/repos","events_url":"https://api.github.com/users/rickhanlonii/events{/privacy}","received_events_url":"https://api.github.com/users/rickhanlonii/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":847426897,"node_id":"MDU6TGFiZWw4NDc0MjY4OTc=","url":"https://api.github.com/repos/facebook/jest/labels/cla%20signed","name":"cla signed","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/jest/pulls/6705/commits","review_comments_url":"https://api.github.com/repos/facebook/jest/pulls/6705/comments","review_comment_url":"https://api.github.com/repos/facebook/jest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/jest/issues/6705/comments","statuses_url":"https://api.github.com/repos/facebook/jest/statuses/592e40269186d73a52930dd370a1c66186d77f88","head":{"label":"SimenB:document-fragment","ref":"document-fragment","sha":"592e40269186d73a52930dd370a1c66186d77f88","user":{"login":"SimenB","id":1404810,"node_id":"MDQ6VXNlcjE0MDQ4MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1404810?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnk3NTQ3NDY3NA==","name":"jest","full_name":"SimenB/jest","owner":{"login":"SimenB","id":1404810,"node_id":"MDQ6VXNlcjE0MDQ4MTA=","avatar_url":"https://avatars1.githubusercontent.com/u/1404810?v=4","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":"2018-07-17T06:27:17Z","pushed_at":"2018-07-17T21:31:04Z","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":52267,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"ee0f92eafd40868deef0b79ef0dfc9c96237757d","user":{"login":"facebook","id":69631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjMx","avatar_url":"https://avatars3.githubusercontent.com/u/69631?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA2Mjg2OQ==","name":"jest","full_name":"facebook/jest","owner":{"login":"facebook","id":69631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjMx","avatar_url":"https://avatars3.githubusercontent.com/u/69631?v=4","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":"🃏 Delightful 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":"2018-07-17T20:20:30Z","pushed_at":"2018-07-17T21:31:08Z","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":"https://facebook.github.io/jest/","size":91161,"stargazers_count":19010,"watchers_count":19010,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2475,"mirror_url":null,"archived":false,"open_issues_count":431,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2475,"open_issues":431,"watchers":19010,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/jest/pulls/6705"},"html":{"href":"https://github.com/facebook/jest/pull/6705"},"issue":{"href":"https://api.github.com/repos/facebook/jest/issues/6705"},"comments":{"href":"https://api.github.com/repos/facebook/jest/issues/6705/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/jest/pulls/6705/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/jest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/jest/pulls/6705/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/jest/statuses/592e40269186d73a52930dd370a1c66186d77f88"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"SimenB"}}