{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/1650","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/1650/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/1650/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/1650/events","html_url":"https://github.com/facebook/jest/issues/1650","id":175830560,"number":1650,"title":"Configurable snapshots directory for colocated tests","user":{"login":"holic","id":508855,"avatar_url":"https://avatars.githubusercontent.com/u/508855?v=3","gravatar_id":"","url":"https://api.github.com/users/holic","html_url":"https://github.com/holic","followers_url":"https://api.github.com/users/holic/followers","following_url":"https://api.github.com/users/holic/following{/other_user}","gists_url":"https://api.github.com/users/holic/gists{/gist_id}","starred_url":"https://api.github.com/users/holic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holic/subscriptions","organizations_url":"https://api.github.com/users/holic/orgs","repos_url":"https://api.github.com/users/holic/repos","events_url":"https://api.github.com/users/holic/events{/privacy}","received_events_url":"https://api.github.com/users/holic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-08T18:41:17Z","updated_at":"2016-09-08T18:45:59Z","closed_at":null,"body":"The React community seems to be moving towards colocating tests with components. I appreciate the changes to the default `testRegex` that looks for any `.test.js` file.\r\n\r\nHowever, using this colocation method means a bunch of scattered `__snapshots__` directories throughout the codebase. Since snapshots seem to be more for machine readability than human readability, I would tend to throw them all in a single top-level directory (like you might have for build/dist files). What are your thoughts on making the snapshots directory configurable?"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/245699147","html_url":"https://github.com/facebook/jest/issues/1650#issuecomment-245699147","issue_url":"https://api.github.com/repos/facebook/jest/issues/1650","id":245699147,"user":{"login":"cpojer","id":13352,"avatar_url":"https://avatars.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},"created_at":"2016-09-08T18:45:59Z","updated_at":"2016-09-08T18:45:59Z","body":"Jest also ensures that there are never any stale snapshots in the system. This means we both need a way to map from a snapshot to its associated test and back. This seems kinda hard to configure via string values in the JSON config :("}}
{"actor":{"display_login":"cpojer"}}