{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/1211","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/1211/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/1211/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/1211/events","html_url":"https://github.com/facebook/jest/issues/1211","id":162315535,"node_id":"MDU6SXNzdWUxNjIzMTU1MzU=","number":1211,"title":"Jest Coverage All Files","user":{"login":"calclavia","id":1828968,"node_id":"MDQ6VXNlcjE4Mjg5Njg=","avatar_url":"https://avatars3.githubusercontent.com/u/1828968?v=4","gravatar_id":"","url":"https://api.github.com/users/calclavia","html_url":"https://github.com/calclavia","followers_url":"https://api.github.com/users/calclavia/followers","following_url":"https://api.github.com/users/calclavia/following{/other_user}","gists_url":"https://api.github.com/users/calclavia/gists{/gist_id}","starred_url":"https://api.github.com/users/calclavia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calclavia/subscriptions","organizations_url":"https://api.github.com/users/calclavia/orgs","repos_url":"https://api.github.com/users/calclavia/repos","events_url":"https://api.github.com/users/calclavia/events{/privacy}","received_events_url":"https://api.github.com/users/calclavia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-06-26T06:54:55Z","updated_at":"2018-08-31T17:55:12Z","closed_at":"2016-08-16T23:04:42Z","author_association":"NONE","body":"When Jest performs code coverage, it seems to only cover the files that were tested instead of all files in my source directory. This gives a skewed percentage of files tested.\n\nFor example, if I have 10 source files and I only test one of them, the coverage report will not include all the files. It would be nice if there's a way to specify which files should be covered. collectCoverageOnlyFrom does not seem to serve this purpose.\n"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/417743117","html_url":"https://github.com/facebook/jest/issues/1211#issuecomment-417743117","issue_url":"https://api.github.com/repos/facebook/jest/issues/1211","id":417743117,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzc0MzExNw==","user":{"login":"kirillgroshkov","id":4757745,"node_id":"MDQ6VXNlcjQ3NTc3NDU=","avatar_url":"https://avatars2.githubusercontent.com/u/4757745?v=4","gravatar_id":"","url":"https://api.github.com/users/kirillgroshkov","html_url":"https://github.com/kirillgroshkov","followers_url":"https://api.github.com/users/kirillgroshkov/followers","following_url":"https://api.github.com/users/kirillgroshkov/following{/other_user}","gists_url":"https://api.github.com/users/kirillgroshkov/gists{/gist_id}","starred_url":"https://api.github.com/users/kirillgroshkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirillgroshkov/subscriptions","organizations_url":"https://api.github.com/users/kirillgroshkov/orgs","repos_url":"https://api.github.com/users/kirillgroshkov/repos","events_url":"https://api.github.com/users/kirillgroshkov/events{/privacy}","received_events_url":"https://api.github.com/users/kirillgroshkov/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T17:55:12Z","updated_at":"2018-08-31T17:55:12Z","author_association":"NONE","body":"oh, I'm so lucky to find that solution today! `\"collectCoverageFrom\" : [\"app/**/*.js\"],` worked for me! I thought it's a design limitation of `jest` and was very upset, but now I can proceed and setup KPIs for test coverage."}}
{"actor":{"display_login":"kirillgroshkov"}}