{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/5704","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/5704/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/5704/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/5704/events","html_url":"https://github.com/facebook/jest/pull/5704","id":301600886,"number":5704,"title":"Set compact to false in script_transformer (Fixes #5703)","user":{"login":"christiango","id":1581488,"avatar_url":"https://avatars2.githubusercontent.com/u/1581488?v=4","gravatar_id":"","url":"https://api.github.com/users/christiango","html_url":"https://github.com/christiango","followers_url":"https://api.github.com/users/christiango/followers","following_url":"https://api.github.com/users/christiango/following{/other_user}","gists_url":"https://api.github.com/users/christiango/gists{/gist_id}","starred_url":"https://api.github.com/users/christiango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christiango/subscriptions","organizations_url":"https://api.github.com/users/christiango/orgs","repos_url":"https://api.github.com/users/christiango/repos","events_url":"https://api.github.com/users/christiango/events{/privacy}","received_events_url":"https://api.github.com/users/christiango/received_events","type":"User","site_admin":false},"labels":[{"id":847426897,"url":"https://api.github.com/repos/facebook/jest/labels/cla%20signed","name":"cla signed","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-01T23:38:09Z","updated_at":"2018-03-02T06:33:41Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/5704","html_url":"https://github.com/facebook/jest/pull/5704","diff_url":"https://github.com/facebook/jest/pull/5704.diff","patch_url":"https://github.com/facebook/jest/pull/5704.patch"},"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\nOur build system does not cache the results of building a project when it emits warnings. We noticed that when jest ran on some of our larger files, it was emitting a warning of the form: \r\n[BABEL] Note: The code generator has deoptimised the styling of \"[Path to File]\" as it exceeds the max of \"500KB\".\r\n\r\nDigging in deeper shows that script_transformer.js runs babel for coverage mode, but does not respect any existing babel configurations. This particular babel warning is only emitted when [compact](https://babeljs.io/docs/usage/api/) is left with the default value of auto, setting it to either true or false would cause this warning to no longer be emitted. I set it to false since it matches the behavior of auto for most files.\r\n\r\n## Test plan\r\nShould be a reasonably safe change.\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"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/369834835","html_url":"https://github.com/facebook/jest/pull/5704#issuecomment-369834835","issue_url":"https://api.github.com/repos/facebook/jest/issues/5704","id":369834835,"user":{"login":"SimenB","id":1404810,"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},"created_at":"2018-03-02T06:33:41Z","updated_at":"2018-03-02T06:33:41Z","author_association":"COLLABORATOR","body":"Also, please fix lint (run yarn lint locally to see the errors), and update the changelog 🙂 "}}
{"actor":{"display_login":"SimenB"}}