{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/6467","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/6467/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/6467/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/6467/events","html_url":"https://github.com/facebook/jest/issues/6467","id":332442453,"node_id":"MDU6SXNzdWUzMzI0NDI0NTM=","number":6467,"title":"Extend `updateConfigAndRun` to allow change of `verbose` and `collectCoverage`","user":{"login":"tdd","id":3752,"node_id":"MDQ6VXNlcjM3NTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3752?v=4","gravatar_id":"","url":"https://api.github.com/users/tdd","html_url":"https://github.com/tdd","followers_url":"https://api.github.com/users/tdd/followers","following_url":"https://api.github.com/users/tdd/following{/other_user}","gists_url":"https://api.github.com/users/tdd/gists{/gist_id}","starred_url":"https://api.github.com/users/tdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdd/subscriptions","organizations_url":"https://api.github.com/users/tdd/orgs","repos_url":"https://api.github.com/users/tdd/repos","events_url":"https://api.github.com/users/tdd/events{/privacy}","received_events_url":"https://api.github.com/users/tdd/received_events","type":"User","site_admin":false},"labels":[{"id":549288633,"node_id":"MDU6TGFiZWw1NDkyODg2MzM=","url":"https://api.github.com/repos/facebook/jest/labels/Feature%20Request","name":"Feature Request","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-14T15:02:52Z","updated_at":"2018-06-15T11:08:22Z","closed_at":null,"author_association":"NONE","body":"## 🚀 Feature Proposal\r\n\r\nThe current scope of accepted config keys is super narrow (and the documentation doesn't say anything about it).\r\n\r\n## Motivation\r\n\r\nThe two most asked-for watch plugins that are not yet implemented are:\r\n\r\n- toggle coverage collection\r\n- toggle test verbosity\r\n\r\nBoth are trivial to implement, provided that the passed `updateConfigAndRun()` function takes the relevant global config keys into account. Currently, it only accepts the minimum set of config keys required to implement the internal plugins, not one more. Fortunately, this was enough to implement the typeahead plugin, as it's just an overwrite of the logic for the non-typeahead internal plugin, but that's as far as it goes.\r\n\r\nNote that IMHO, the global config should be audited for prime candidate keys that seem innocuous enough to expose to watch plugins. It's likely that `bail`, `collectCoverageFrom`, `collectCoverageOnlyFrom`, `coverageDirectory`, `coverageReporters`, `notify`, `notifyMode`, `onlyFailures` and `reporters` would be good candidates that do not impede core's ability to function when tweaked.\r\n\r\n## Example\r\n\r\n- Being able to toggle `collectCoverage` would let us implement a coverage toggler\r\n- Being able to toggle `verbose` would let us implement a verbosity toggler.\r\n\r\n## Pitch\r\n\r\nWhy does this feature belong in the [Jest core platform](https://www.youtube.com/watch?v=NtjyeojAOBs)?\r\n\r\nBecause it can't be implemented from the outside. For obvious reasons, the passed global config is immutable, and the one used by `watch()` is a local reference that it is the only scope to access.\r\n\r\nI'm willing to help with changes in core, and have the two aforementioned plugins at the ready (or almost so, for coverage, as I want to expand it further).\r\n\r\nLet me know!"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/397588890","html_url":"https://github.com/facebook/jest/issues/6467#issuecomment-397588890","issue_url":"https://api.github.com/repos/facebook/jest/issues/6467","id":397588890,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzU4ODg5MA==","user":{"login":"tdd","id":3752,"node_id":"MDQ6VXNlcjM3NTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3752?v=4","gravatar_id":"","url":"https://api.github.com/users/tdd","html_url":"https://github.com/tdd","followers_url":"https://api.github.com/users/tdd/followers","following_url":"https://api.github.com/users/tdd/following{/other_user}","gists_url":"https://api.github.com/users/tdd/gists{/gist_id}","starred_url":"https://api.github.com/users/tdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdd/subscriptions","organizations_url":"https://api.github.com/users/tdd/orgs","repos_url":"https://api.github.com/users/tdd/repos","events_url":"https://api.github.com/users/tdd/events{/privacy}","received_events_url":"https://api.github.com/users/tdd/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T11:08:22Z","updated_at":"2018-06-15T11:08:22Z","author_association":"NONE","body":"I went ahead and did a fresh clone of my fork, fixed the whole shenanigans. Thx!"}}
{"actor":{"display_login":"tdd"}}